lib/redis/objects/values.rb in redis-objects-0.1.0 vs lib/redis/objects/values.rb in redis-objects-0.1.1

- old
+ new

@@ -18,10 +18,10 @@ # method, so it can be used alongside ActiveRecord, DataMapper, etc. def value(name, options={}) @values[name] = options class_eval <<-EndMethods def #{name} - @#{name} ||= Redis::Value.new(field_key(:#{name}), self.class.values[:#{name}].merge(:redis => redis)) + @#{name} ||= Redis::Value.new(field_key(:#{name}), redis, self.class.values[:#{name}]) end def #{name}=(value) #{name}.value = value end EndMethods \ No newline at end of file