lib/redis-model-extension.rb in redis-model-extension-0.2.3 vs lib/redis-model-extension.rb in redis-model-extension-0.2.4
- old
+ new
@@ -242,10 +242,10 @@
#remove record form database
def destroy!
if exists?
#destroy main object
- Database.redis.del(generate_key)
+ Database.redis.del(redis_key)
destroy_aliases!
end
end
#remove all aliases
\ No newline at end of file