lib/redis/namespace.rb in redis-namespace-0.4.1 vs lib/redis/namespace.rb in redis-namespace-0.4.2
- old
+ new
@@ -123,10 +123,10 @@
"[]" => [ :first ],
"[]=" => [ :first ]
}
# support previous versions of redis gem
- ALIASES = defined? Redis::Client ? Redis::Client::ALIASES : Redis::ALIASES
+ ALIASES = (defined? Redis::Client) ? Redis::Client::ALIASES : Redis::ALIASES
attr_accessor :namespace
def initialize(namespace, options = {})
@namespace = namespace