Module: Pagination::PageSizeForHelper

Included in:
RecordFirstForHelper, RecordLastForHelper, TotalPagesForHelper
Defined in:
lib/action_set/helpers/pagination/page_size_for_helper.rb

Instance Method Summary collapse

Instance Method Details

#pagination_page_size_for(set) ⇒ Object



5
6
7
# File 'lib/action_set/helpers/pagination/page_size_for_helper.rb', line 5

def pagination_page_size_for(set)
  set.instructions.dig(:paginate, :size)
end