Method: JSONAPI::Resource.resources_for
- Defined in:
- lib/jsonapi/resource.rb
.resources_for(records, context) ⇒ Object
745 746 747 748 749 750 |
# File 'lib/jsonapi/resource.rb', line 745 def resources_for(records, context) records.collect do |model| resource_class = self.resource_for_model(model) resource_class.new(model, context) end end |