stadtratmonitor/config/initializers/kaminari_config.rb

14 lines
417 B
Ruby
Raw Normal View History

2015-04-27 23:14:48 +02:00
Kaminari.configure do |config|
config.default_per_page = 10
2015-04-27 23:14:48 +02:00
# config.max_per_page = nil
# config.window = 4
# config.outer_window = 0
# config.left = 0
# config.right = 0
# config.page_method_name = :page
# config.param_name = :page
end
2018-02-18 23:26:30 +01:00
Kaminari::Hooks.init if defined?(Kaminari::Hooks)
2015-04-27 23:14:48 +02:00
Elasticsearch::Model::Response::Response.__send__ :include, Elasticsearch::Model::Response::Pagination::Kaminari