class LibrariesController < ApplicationController include PaginateHelper def index default_sort('updated_at', 'desc') @items = ItemBankQuery.call(params) @items = paginate courses.includes(:school, :students, :attachments, :homework_commons, teacher: :user_extension) end def create end end