Skip to content

Commit 46ce3a5

Browse files
committed
deprecation warning for Resque.redis=
1 parent 7be4ab4 commit 46ce3a5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/resque.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ class << self
3939
# 5. An instance of `Redis`, `Redis::Client`, `Redis::DistRedis`,
4040
# or `Redis::Namespace`.
4141
def redis=(server)
42+
STDERR.puts "WARNING: `Resque.redis=` is deprecated. Please use `Resque.create_pool` instead"
4243
create_pool(server)
4344
end
4445

0 commit comments

Comments
 (0)