nateware/redis-objects — Issue #47: Way to destroy all redis-objects fields associated with an object
Author: stephenhandley
Created: 2011-10-12 16:26:28+00:00
State: open

I'm thinking I'm likely just missing it in the docs, but I can't find any info on a public method for doing the following on an object with redis-objects included to delete all the fields stored for it.. looks like all the delete methods are defined on the BaseObject child classes.
```
def destroy
self.class.redis_objects.keys.map do |r|
redis.del(send(r).key)
end
end
```