You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
301 B

5 years ago
class DisciplinesController < ApplicationController
def index
# 设定public来筛选课程体系列表
case params[:public].to_i
# 仅私有题库
when 1
@sub_discipline_ids = ItemBank.where(user_id: current_user.id, public: false).pluck(:sub_discipline_id)
end
end
end