Sha256: 3f8753961b4e19610e9d8a4b36bc4e0e3762471e6392a84854ec4a52cdf101af
Contents?: true
Size: 282 Bytes
Versions: 2
Compression:
Stored size: 282 Bytes
Contents
module RailsPaginate::Helpers module Array def paginate(*args) options = args.extract_options! per_page = options.delete(:per_page) page = options.delete(:page) || 1 ::RailsPaginate::Collection.new(self, args.first || page, per_page) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails_paginate-0.0.4 | lib/rails_paginate/helpers/array.rb |
rails_paginate-0.0.3 | lib/rails_paginate/helpers/array.rb |