Sha256: 78a4bab7aa7fb6e92dfb0d0573347b30b772dbd33f55686b81a027d34eeb92b2

Contents?: true

Size: 458 Bytes

Versions: 5

Compression:

Stored size: 458 Bytes

Contents

module RailsPagination
  class Railtie < Rails::Railtie

    config.pagination = ActiveSupport::OrderedOptions.new
    config.pagination.default_per_page = 30
    config.pagination.default_parameter = :p
    config.pagination.default_navigation = 5

    initializer 'rails_pagination' do
      ::ActiveRecord::Base.send :extend, RailsPagination::ActiveRecord::Base
      ::ActionView::Base.send :include, RailsPagination::ActionView::Base
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rails_pagination-2.0.10 lib/rails_pagination/railtie.rb
rails_pagination-2.0.9 lib/rails_pagination/railtie.rb
rails_pagination-2.0.8 lib/rails_pagination/railtie.rb
rails_pagination-2.0.7 lib/rails_pagination/railtie.rb
rails_pagination-2.0.6 lib/rails_pagination/railtie.rb