Sha256: 84258875e591f84bcd80aad62a5ac80cc69efee868113b2c9fed47eca0227ce6

Contents?: true

Size: 255 Bytes

Versions: 2

Compression:

Stored size: 255 Bytes

Contents

class Array
  def paginate(*args)
    options  = args.extract_options!
    per_page = options.delete(:per_page) || RailsPaginate.per_page
    page = options.delete(:page) || 1
    RailsPaginate::Collection.new(self, args.first || page, per_page)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails_paginate-0.0.2 lib/rails_paginate/core_ext/array.rb
rails_paginate-0.0.1 lib/rails_paginate/core_ext/array.rb