Module: Tolk::Pagination::Methods
- Included in:
- ApplicationController, Locale
- Defined in:
- lib/tolk/pagination.rb
Instance Method Summary collapse
-
#pagination_method ⇒ Object
Kaminari defaults page_method_name to :page, will_paginate always uses :page.
-
#pagination_param ⇒ Object
Kaminari defaults param_name to :page, will_paginate always uses :page.
Instance Method Details
#pagination_method ⇒ Object
Kaminari defaults page_method_name to :page, will_paginate always uses :page
6 7 8 |
# File 'lib/tolk/pagination.rb', line 6 def pagination_method defined?(Kaminari) ? Kaminari.config.page_method_name : :page end |
#pagination_param ⇒ Object
Kaminari defaults param_name to :page, will_paginate always uses :page
11 12 13 |
# File 'lib/tolk/pagination.rb', line 11 def pagination_param defined?(Kaminari) ? Kaminari.config.param_name : :page end |