forgeplus/app/controllers/admins/major_informations_controll...

8 lines
248 B
Ruby
Raw Normal View History

2020-03-09 00:40:16 +08:00
class Admins::MajorInformationsController < Admins::BaseController
def index
disciplines = EcDiscipline.includes(ec_discipline_firsts: {ec_majors: :schools}).order("ec_disciplines.code asc")
@disciplines = paginate disciplines
end
end