Sha256: 0f81461f6c124eef1e3511dd9fcc402ef91a127dbacc4f599ed4f08a9926c356

Contents?: true

Size: 139 Bytes

Versions: 13

Compression:

Stored size: 139 Bytes

Contents

Enumerable.module_eval do
  def paginate(options = {})
    self[options[:offset]..(options[:offset] + options[:limit] - 1)] || []
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
objectreload-pagination-0.1.13 lib/pagination/enumerable.rb
objectreload-pagination-0.1.12 lib/pagination/enumerable.rb
objectreload-pagination-0.1.11 lib/pagination/enumerable.rb
objectreload-pagination-0.1.9 lib/pagination/enumerable.rb
objectreload-pagination-0.1.8 lib/pagination/enumerable.rb
objectreload-pagination-0.1.7 lib/pagination/enumerable.rb
objectreload-pagination-0.1.6 lib/pagination/enumerable.rb
objectreload-pagination-0.1.5 lib/pagination/enumerable.rb
objectreload-pagination-0.1.4 lib/pagination/enumerable.rb
objectreload-pagination-0.1.3 lib/pagination/enumerable.rb
objectreload-pagination-0.1.2 lib/pagination/enumerable.rb
objectreload-pagination-0.1.1 lib/pagination/enumerable.rb
objectreload-pagination-0.1.0 lib/pagination/enumerable.rb