Sha256: 0f8c4a952cc04a2a3881d46dcfb36f447805fbf8ea47229443f07fb172cbab94

Contents?: true

Size: 229 Bytes

Versions: 9

Compression:

Stored size: 229 Bytes

Contents

WillPaginate::Collection.class_eval do
  def as_json(*args)
    {
      current_page: current_page,
      per_page: per_page,
      total_entries: total_entries,
      total_pages: total_pages,
      items: to_a
    }
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
slices-2.0.2 lib/slices/will_paginate.rb
slices-2.0.1 lib/slices/will_paginate.rb
slices-2.0.0 lib/slices/will_paginate.rb
slices-1.0.5 lib/slices/will_paginate.rb
slices-1.0.4 lib/slices/will_paginate.rb
slices-1.0.3 lib/slices/will_paginate.rb
slices-1.0.2 lib/slices/will_paginate.rb
slices-1.0.1 lib/slices/will_paginate.rb
slices-1.0.0 lib/slices/will_paginate.rb