use present to check if redis_url is empty

This commit is contained in:
Jonne Haß 2012-09-12 22:30:08 +02:00
parent 70a9218ea5
commit 3e935e1104

View file

@ -9,7 +9,7 @@ if !AppConfig.single_process_mode?
:passsword => uri.password } :passsword => uri.password }
elsif ENV['RAILS_ENV']== 'integration2' elsif ENV['RAILS_ENV']== 'integration2'
redis_options = { :host => 'localhost', :port => 6380 } redis_options = { :host => 'localhost', :port => 6380 }
elsif AppConfig[:redis_url] elsif AppConfig[:redis_url].present?
redis_options = { :url => AppConfig[:redis_url], :port => 6379 } redis_options = { :url => AppConfig[:redis_url], :port => 6379 }
end end