#  Copyright (c) 2012-2013, Jungwacht Blauring Schweiz. This file is part of
#  hitobito and licensed under the Affero General Public License version 3
#  or later. See the COPYING file at the top-level directory or at
#  https://github.com/hitobito/hitobito.

Kaminari.configure do |config|
  config.default_per_page = 50
  config.window = 5
  # config.max_per_page = nil
  # config.outer_window = 0
  # config.left = 0
  # config.right = 0
  # config.page_method_name = :page
  # config.param_name = :page
end


module Kaminari
  module Helpers
    class Tag
      # Monkey patch this method to always include the :page param
      def page_url_for(page)
        @template.url_for @params.merge(@param_name => page)
      end
    end
  end
end
