examples/redis/namespaced.rb in flipper-redis-0.11.0.beta3 vs examples/redis/namespaced.rb in flipper-redis-0.11.0.beta4

- old
+ new

@@ -12,11 +12,11 @@ lib_path = root_path.join('lib') $:.unshift(lib_path) require 'flipper/adapters/redis' options = {url: 'redis://127.0.0.1:6379'} -if ENV['BOXEN_REDIS_URL'] - options[:url] = ENV['BOXEN_REDIS_URL'] +if ENV['REDIS_URL'] + options[:url] = ENV['REDIS_URL'] end client = Redis.new(options) namespaced_client = Redis::Namespace.new(:flipper_namespace, redis: client) adapter = Flipper::Adapters::Redis.new(namespaced_client) flipper = Flipper.new(adapter)