Method: ActiveCollection::Pagination#paginate!
- Defined in:
- lib/active_collection/pagination.rb
#paginate! ⇒ Object
forces pagination of self, raising if already loaded. returns current_page if the collection is now paginated returns nil if already paginated
75 76 77 |
# File 'lib/active_collection/pagination.rb', line 75 def paginate! paginated?? nil : page!(1) end |