lib/redis/objects/sets.rb in redis-objects-0.6.1 vs lib/redis/objects/sets.rb in redis-objects-0.7.0

- old
+ new

@@ -12,11 +12,11 @@ # Class methods that appear in your class when you include Redis::Objects. module ClassMethods # Define a new list. It will function like a regular instance # method, so it can be used alongside ActiveRecord, DataMapper, etc. def set(name, options={}) - @redis_objects[name.to_sym] = options.merge(:type => :set) + redis_objects[name.to_sym] = options.merge(:type => :set) klass_name = '::' + self.name if options[:global] instance_eval <<-EndMethods def #{name} @#{name} ||= Redis::Set.new(redis_field_key(:#{name}), #{klass_name}.redis, #{klass_name}.redis_objects[:#{name}]) @@ -32,15 +32,15 @@ def #{name} @#{name} ||= Redis::Set.new(redis_field_key(:#{name}), #{klass_name}.redis, #{klass_name}.redis_objects[:#{name}]) end EndMethods end - + end end # Instance methods that appear in your class when you include Redis::Objects. module InstanceMethods end end end -end \ No newline at end of file +end