Sha256: cd4834062c4ebc45225e3014e49cb8b2f385ee39086022beb39847cc02d4ba47

Contents?: true

Size: 430 Bytes

Versions: 1

Compression:

Stored size: 430 Bytes

Contents

module Pageable
  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 'pageable' do
      ::ActiveRecord::Base.send :include, Pageable::ActiveRecord::Base
      ::ActionView::Base.send :include, Pageable::ActionView::Base
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pageable-2.1.0 lib/pageable/railtie.rb