Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use id_to_key when deleting records too

  • Loading branch information...
commit 9b60f551e8f40970d893aa93331db5a109352a16 1 parent 6d45467
@careo authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/toy/persistence.rb
View
3  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
Please sign in to comment.
Something went wrong with that request. Please try again.