Module: Nazrin::PaginationGenerator
- Defined in:
- lib/nazrin/pagination_generator.rb
Class Method Summary collapse
Class Method Details
.generate(collection, options = {}) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/nazrin/pagination_generator.rb', line 4 def generate(collection, = {}) Nazrin::PaginatedArray.new( collection, [:current_page], [:per_page], [:total_count] ) end |