Skip to content

Commit

Permalink
initalize default redis connection by redis gem
Browse files Browse the repository at this point in the history
  • Loading branch information
morgoth authored and defunkt committed Mar 18, 2011
1 parent b7d5dd6 commit 39186f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resque.rb
Expand Up @@ -54,7 +54,7 @@ def redis=(server)
# create a new one.
def redis
return @redis if @redis
self.redis = 'localhost:6379'
self.redis = Redis.respond_to?(:connect) ? Redis.connect : "localhost:6379"
self.redis
end

Expand Down

0 comments on commit 39186f6

Please sign in to comment.