Sha256: 181664a130563960f79896f057c770b77bcf9ba58145531ffc0d48ae6ae1f28d
Contents?: true
Size: 325 Bytes
Versions: 2
Compression:
Stored size: 325 Bytes
Contents
# frozen_string_literal: true require_relative './page_size_for_helper' module Pagination module TotalPagesForHelper include Pagination::PageSizeForHelper def pagination_total_pages_for(set) total_set_size = set.set.count (total_set_size.to_f / pagination_page_size_for(set)).ceil end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
actionset-0.5.1 | lib/action_set/helpers/pagination/total_pages_for_helper.rb |
actionset-0.5.0 | lib/action_set/helpers/pagination/total_pages_for_helper.rb |