Module: SmartPagination::Helper
- Defined in:
- lib/smart_pagination/helper.rb
Instance Method Summary collapse
- #smart_pager_for(collection, options = {}) ⇒ Object (also: #pager_for)
- #smart_pagination_for(collection, options = {}) ⇒ Object (also: #pagination_for)
- #smart_pagination_info_for(collection, options = {}) ⇒ Object (also: #pagination_info_for)
Instance Method Details
#smart_pager_for(collection, options = {}) ⇒ Object Also known as: pager_for
9 10 11 12 |
# File 'lib/smart_pagination/helper.rb', line 9 def smart_pager_for(collection, = {}) = .merge(pager_mode: true) SmartPagination::Renderer.new(self, collection, ).render end |
#smart_pagination_for(collection, options = {}) ⇒ Object Also known as: pagination_for
3 4 5 |
# File 'lib/smart_pagination/helper.rb', line 3 def smart_pagination_for(collection, = {}) SmartPagination::Renderer.new(self, collection, ).render end |
#smart_pagination_info_for(collection, options = {}) ⇒ Object Also known as: pagination_info_for
16 17 18 19 |
# File 'lib/smart_pagination/helper.rb', line 16 def smart_pagination_info_for(collection, = {}) = .merge(info_mode: true) SmartPagination::Renderer.new(self, collection, ).render end |