app/controllers/decidim/conferences/admin/conference_speakers_controller.rb in decidim-conferences-0.19.1 vs app/controllers/decidim/conferences/admin/conference_speakers_controller.rb in decidim-conferences-0.20.0
- old
+ new
@@ -6,16 +6,17 @@
# Controller that allows managing conference speakers.
#
class ConferenceSpeakersController < Decidim::Conferences::Admin::ApplicationController
helper Decidim::Conferences::Admin::ConferenceSpeakersHelper
include Concerns::ConferenceAdmin
+ include Decidim::Paginable
def index
enforce_permission_to :index, :conference_speaker
@query = params[:q]
- @conference_speakers = Decidim::Conferences::Admin::ConferenceSpeakers.for(collection, @query).page(params[:page]).per(15)
+ @conference_speakers = paginate(Decidim::Conferences::Admin::ConferenceSpeakers.for(collection, @query))
end
def new
enforce_permission_to :create, :conference_speaker
@form = form(ConferenceSpeakerForm).instance