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