Sha256: 42647b2f6a12098fa6e79da3e077cecfb182debf8b4761d4033a021592116f7c

Contents?: true

Size: 405 Bytes

Versions: 4

Compression:

Stored size: 405 Bytes

Contents

module Pagers
  class Railtie < Rails::Railtie

    config.pagers = ActiveSupport::OrderedOptions.new
    config.pagers.length = 20
    config.pagers.padding = 0
    config.pagers.parameter = :p
    config.pagers.pages = 5

    initializer 'pagers' do
      ::ActiveRecord::Base.send :include, Pagers::ActiveRecord::Base
      ::ActionView::Base.send :include, Pagers::ActionView::Base
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pagers-3.0.3 lib/pagers/railtie.rb
pagers-3.0.2 lib/pagers/railtie.rb
pagers-3.0.1 lib/pagers/railtie.rb
pagers-3.0.0 lib/pagers/railtie.rb