Skip to content

Commit

Permalink
When deleting statements, don't expand statements enumerator, as it c…
Browse files Browse the repository at this point in the history
…an be used directly by RDF::Mutable#delete. Fixes #40.
  • Loading branch information
gkellogg committed Oct 9, 2015
1 parent 816d5fc commit b7335a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/spira/persistence.rb
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ def retrieve_attribute(name, options, sts)
# Destroy all model data
# AND non-model data, where this resource is referred to as object.
def destroy_model_data(*args)
if self.class.repository.delete(*statements) && self.class.repository.delete([nil, nil, subject])
if self.class.repository.delete(statements) && self.class.repository.delete([nil, nil, subject])
@destroyed = true
freeze
end
Expand Down

0 comments on commit b7335a0

Please sign in to comment.