Method: JsonApiModel::Scope#find
- Defined in:
- lib/json_api_model/scope.rb
#find(args = {}) ⇒ Object Also known as: to_a, all
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/json_api_model/scope.rb', line 9 def find( args = {} ) JsonApiModel.instrumenter.instrument 'find.json_api_model', args: args, url: url do cache_or_find args do results = @client_scope.find args ResultSet.new( results, @model_class ) end end end |