Module: SmartPagination::Helper

Defined in:
lib/smart_pagination/helper.rb

Instance Method Summary collapse

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, options = {})
  options = options.merge(pager_mode: true)
  SmartPagination::Renderer.new(self, collection, options).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, options = {})
  SmartPagination::Renderer.new(self, collection, options).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, options = {})
  options = options.merge(info_mode: true)
  SmartPagination::Renderer.new(self, collection, options).render
end