Module: Decidim::CellsPaginateHelper

Includes:
ActionView::Helpers::OutputSafetyHelper, ActionView::Helpers::TranslationHelper, Cell::ViewModel::Partial, PaginateHelper, Kaminari::Helpers::HelperMethods
Included in:
FollowersCell, FollowingCell, GroupsCell, MembersCell, NotificationsCell, SearchResultsSectionCell, UserActivityCell, UserConversationsCell, UserGroupPendingInvitationsListCell, UserGroupPendingRequestsListCell, UserTimelineCell
Defined in:
app/helpers/decidim/cells_paginate_helper.rb

Instance Method Summary collapse

Methods included from PaginateHelper

#decidim_paginate

Instance Method Details

#paginate(scope, options = {}, &block) ⇒ Object



11
12
13
14
# File 'app/helpers/decidim/cells_paginate_helper.rb', line 11

def paginate(scope, options = {}, &block)
  options = options.reverse_merge(views_prefix: "../views/")
  super
end

#per_pageObject



16
17
18
# File 'app/helpers/decidim/cells_paginate_helper.rb', line 16

def per_page
  params[:per_page] || Decidim::Paginable::OPTIONS.first
end