Module: Tolk::Pagination::Methods

Included in:
ApplicationController, Locale
Defined in:
lib/tolk/pagination.rb

Instance Method Summary collapse

Instance Method Details

#pagination_methodObject

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_paramObject

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