lib/jsonapi/resource.rb in jsonapi-resources-0.5.6 vs lib/jsonapi/resource.rb in jsonapi-resources-0.5.7

- old
+ new

@@ -109,11 +109,11 @@ self.class.fields end # Override this on a resource to customize how the associated records # are fetched for a model. Particularly helpful for authorization. - def records_for(relationship_name, _options = {}) - model.public_send relationship_name + def records_for(relation_name, _options = {}) + model.public_send relation_name end private def save