Module: Upmin::Railties::Paginator
- Defined in:
- lib/upmin/railties/paginator.rb
Instance Method Summary collapse
Instance Method Details
#up_paginate(scope, options = {}, &block) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/upmin/railties/paginator.rb', line 5 def up_paginate(scope, = {}, &block) if defined?(WillPaginate) [:renderer] = BootstrapPagination::Rails if defined?(BootstrapPagination::Rails) return will_paginate(scope, ) else # Use Kaminari return paginate(scope, , &block) end end |