wblog/config/initializers/kaminari_config.rb

11 lines
247 B
Ruby
Raw Permalink Normal View History

Kaminari.configure do |config|
config.default_per_page = 10
# config.max_per_page = nil
2016-04-21 18:12:30 +08:00
config.window = 2
# config.outer_window = 0
2016-04-21 18:12:30 +08:00
config.left = 0
config.right = 0
# config.page_method_name = :page
# config.param_name = :page
end