Skip to content

Commit

Permalink
Improve RAILS_RESQUE_REDIS condition
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillplatonov committed Apr 4, 2017
1 parent f8086ec commit 60ccc51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/resque_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
# Previously, this initializer always set Resque.redis, and defaulted to '127.0.0.1:6379' if
# RAILS_RESQUE_REDIS was not set.

if ENV['RAILS_RESQUE_REDIS'] && ENV['RAILS_RESQUE_REDIS'].length
if ENV['RAILS_RESQUE_REDIS'].present?
Resque.redis = ENV['RAILS_RESQUE_REDIS']
end

0 comments on commit 60ccc51

Please sign in to comment.