Module: Pagination::RecordRangeForHelper
Instance Method Summary
collapse
#pagination_record_last_for
#pagination_total_pages_for
#pagination_page_size_for
#pagination_record_size_for
#pagination_current_page_for
#pagination_record_first_for
Instance Method Details
13
14
15
16
17
18
19
20
21
22
23
|
# File 'lib/action_set/helpers/pagination/record_range_for_helper.rb', line 13
def (set)
current_page = (set)
total_pages = (set)
return 'None' if current_page > total_pages
[
(set),
'–',
(set)
].join(' ').html_safe
end
|