Module: Tolk::Pagination::ViewHelper
- Included in:
- ApplicationHelper
- Defined in:
- lib/tolk/pagination.rb
Instance Method Summary collapse
Instance Method Details
#tolk_paginate(collection, options = {}) ⇒ Object
17 18 19 20 21 22 23 24 25 |
# File 'lib/tolk/pagination.rb', line 17 def tolk_paginate(collection, = {}) if respond_to?(:will_paginate) # If parent app is using Will Paginate, we need to use it also will_paginate collection, else # Otherwise use Kaminari paginate collection, end end |