Permalink
Browse files

use id_to_key when deleting records too

  • Loading branch information...
1 parent 6d45467 commit 9b60f551e8f40970d893aa93331db5a109352a16 @careo committed Sep 13, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/toy/persistence.rb
@@ -69,7 +69,8 @@ def destroy
def delete
@_destroyed = true
log_operation(:del, self.class.name, store, id)
- store.delete(id)
+ key = self.class.id_to_key(id)
+ store.delete(key)
end
private

0 comments on commit 9b60f55

Please sign in to comment.