lib/spontaneous/collections/entry_set.rb in spontaneous-0.2.0.alpha2 vs lib/spontaneous/collections/entry_set.rb in spontaneous-0.2.0.alpha3
- old
+ new
@@ -63,12 +63,12 @@
def destroy!
self.destroy
owner.entry_modified!(nil)
end
- def destroy
+ def destroy(origin)
store.each do |box_id, entries|
- entries.dup.each { |e| e.destroy(false) }
+ entries.dup.each { |e| e.destroy(false, origin) }
end
end
def remove(piece)
delete(piece)