lib/graphiti/util/persistence.rb in graphiti-1.0.beta.15 vs lib/graphiti/util/persistence.rb in graphiti-1.0.beta.16

- old
+ new

@@ -147,11 +147,10 @@ end def persist_object(method, attributes) case method when :destroy - model = @resource.class._find(attributes.slice(:id)).data - call_resource_method(:destroy, model, @caller_model) + call_resource_method(:destroy, attributes[:id], @caller_model) when :update, nil, :disassociate call_resource_method(:update, attributes, @caller_model) else call_resource_method(:create, attributes, @caller_model) end