class Shamu::JsonApi::Rails::Pagination
Pagination
information gathered from the request.
Private Instance Methods
only_one_kind_of_paging()
click to toggle source
# File lib/shamu/json_api/rails/pagination.rb, line 46 def only_one_kind_of_paging kinds = [ number, offset, cursor ].compact errors.add :base, :only_one_kind_of_paging if kinds.count > 2 || ( size && limit ) end