Removed .presence

This commit is contained in:
duratarskeyk 2015-12-15 13:13:52 +00:00
parent 0f8f0cf620
commit 4cccb94af1
1 changed files with 1 additions and 3 deletions

View File

@ -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