Removed .presence
This commit is contained in:
parent
0f8f0cf620
commit
4cccb94af1
|
@ -1,8 +1,6 @@
|
|||
class Redis
|
||||
def self.connect!
|
||||
puts ENV["REDIS_URL"]
|
||||
puts ENV["REDIS_URL"].presence
|
||||
url = ENV["REDIS_URL"].presence || "redis://localhost:6379/#{::Rails.env.test? ? 1 : 0}"
|
||||
url = ENV["REDIS_URL"] || "redis://localhost:6379/#{::Rails.env.test? ? 1 : 0}"
|
||||
opts = { url: url }
|
||||
|
||||
opts[:logger] = ::Rails.logger if ::Rails.application.config.log_redis
|
||||
|
|
Loading…
Reference in New Issue