Sha256: 7f191a6b54ee2b274f35bad0836530eb45332633abe529d76c995ddf27685065

Contents?: true

Size: 416 Bytes

Versions: 4

Compression:

Stored size: 416 Bytes

Contents

require "i18n"
require "paginate/base"
require "paginate/config"
require "paginate/helper"
require "paginate/renderer"
require "paginate/active_record"
require "paginate/action_controller"

I18n.load_path += Dir[File.dirname(__FILE__) + "/paginate/locales/**/*.yml"]

module Paginate
  def self.setup(&block)
    yield Config
  end
end

Paginate.setup do |config|
  config.param_name = :page
  config.size  = 10
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
paginate-0.1.3 lib/paginate.rb
paginate-0.1.2 lib/paginate.rb
paginate-0.1.1 lib/paginate.rb
paginate-0.1.0 lib/paginate.rb