lib/split.rb in split-1.1.0 vs lib/split.rb in split-1.2.0
- old
+ new
@@ -51,10 +51,10 @@
# Returns the current Redis connection. If none has been created, will
# create a new one.
def redis
return @redis if @redis
- self.redis = 'localhost:6379'
+ self.redis = ENV.fetch('REDIS_URL', 'localhost:6379')
self.redis
end
# Call this method to modify defaults in your initializers.
#