add kaminari config with default and max per_page values
This commit is contained in:
parent
6745812c72
commit
6817a6a295
1 changed files with 10 additions and 0 deletions
10
config/initializers/kaminari_config.rb
Normal file
10
config/initializers/kaminari_config.rb
Normal file
|
@ -0,0 +1,10 @@
|
|||
Kaminari.configure do |config|
|
||||
config.default_per_page = 20
|
||||
config.max_per_page = 100
|
||||
# config.window = 4
|
||||
# config.outer_window = 0
|
||||
# config.left = 0
|
||||
# config.right = 0
|
||||
# config.page_method_name = :page
|
||||
# config.param_name = :page
|
||||
end
|
Loading…
Reference in a new issue