Permalink
Browse files

We using JSON to serialize the records now, so we shouldn't be deleti…

…ng each attribute on destroy
  • Loading branch information...
1 parent 0d48a1c commit 80562393dd9d059d5a12156e94de743aebccd152 @maccman maccman committed Nov 7, 2010
Showing with 1 addition and 4 deletions.
  1. +1 −4 lib/supermodel/redis.rb
View
@@ -102,10 +102,7 @@ def raw_destroy
destroy_indexes
redis.srem(self.class.redis_key, self.id)
-
- attributes.keys.each do |key|
- redis.del(redis_key(key))
- end
+ redis.del(redis_key)
end
def destroy_indexes

0 comments on commit 8056239

Please sign in to comment.