app/controllers/decidim/conferences/admin/conference_registrations_controller.rb in decidim-conferences-0.19.1 vs app/controllers/decidim/conferences/admin/conference_registrations_controller.rb in decidim-conferences-0.20.0
- old
+ new
@@ -7,16 +7,17 @@
module Admin
# Controller that allows to manage the conference users registrations.
#
class ConferenceRegistrationsController < Decidim::Conferences::Admin::ApplicationController
include Concerns::ConferenceAdmin
+ include Decidim::Paginable
helper_method :conference
def index
enforce_permission_to :read_conference_registrations, :conference, conference: conference
- @conference_registrations = Decidim::Conferences::ConferenceRegistration.where(conference: conference).page(params[:page]).per(15)
+ @conference_registrations = paginate(Decidim::Conferences::ConferenceRegistration.where(conference: conference))
end
def export
enforce_permission_to :export_conference_registrations, :conference, conference: conference