lib/flipper/adapters/redis.rb in flipper-redis-0.21.0.rc1 vs lib/flipper/adapters/redis.rb in flipper-redis-0.21.0.rc2
- old
+ new
@@ -176,5 +176,12 @@
raise "#{data_type} is not supported by this adapter"
end
end
end
end
+
+Flipper.configure do |config|
+ config.adapter do
+ client = Redis.new(url: ENV["FLIPPER_REDIS_URL"] || ENV["REDIS_URL"])
+ Flipper::Adapters::Redis.new(client)
+ end
+end