lib/split/configuration.rb in split-2.0.0 vs lib/split/configuration.rb in split-2.1.0
- old
+ new
@@ -209,10 +209,10 @@
@persistence = Split::Persistence::SessionAdapter
@persistence_cookie_length = 31536000 # One year from now
@algorithm = Split::Algorithms::WeightedSample
@include_rails_helper = true
@beta_probability_simulations = 10000
- @redis_url = ENV.fetch('REDIS_URL', 'localhost:6379')
+ @redis_url = ENV.fetch(ENV.fetch('REDIS_PROVIDER', 'REDIS_URL'), 'localhost:6379')
end
private
def value_for(hash, key)