lib/pagers.rb in pagers-3.0.3 vs lib/pagers.rb in pagers-3.1.0

- old
+ new

@@ -3,6 +3,24 @@ require 'pagers/active_record/relation' require 'pagers/engine' require 'pagers/railtie' module Pagers + class << self + + def configure + yield config + end + + def config + @config ||= begin + ActiveSupport::OrderedOptions.new.tap do |config| + config.length = 20 + config.padding = 0 + config.parameter = :page + config.pages = 5 + end + end + end + + end end