lib/redis-model-extension.rb in redis-model-extension-0.2.4 vs lib/redis-model-extension.rb in redis-model-extension-0.2.5

- old
+ new

@@ -230,10 +230,13 @@ @errors end #take all arguments and send them out def to_arg - self.args + self.args.inject({}) do |output, item| + output[item.first] = item.last.send(self.class.conf[:fields][item.first.to_sym]) + output + end end #if this record exists in database def exists? Database.redis.exists(self.class.generate_key(self.args)) \ No newline at end of file