Method: JsonApiClient::Query::Builder#paginate
- Defined in:
- lib/json_api_client/query/builder.rb
#paginate(conditions = {}) ⇒ Object
42 43 44 45 46 47 |
# File 'lib/json_api_client/query/builder.rb', line 42 def paginate(conditions = {}) scope = _new_scope scope = scope.page(conditions[:page]) if conditions[:page] scope = scope.per(conditions[:per_page]) if conditions[:per_page] scope end |