Skip to content

Commit ab12b94

Browse files
committed
add deprecation warning for Resque::Stat.redis
1 parent d5a02ac commit ab12b94

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/resque/stat.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ module Resque
88
module Stat
99
extend self
1010

11+
def redis
12+
warn '[Resque] [Deprecation] Resque::Stat #redis method is deprecated (please use #data_strore)'
13+
data_store
14+
end
15+
1116
def data_store
1217
@data_store ||= Resque.redis
1318
end

0 commit comments

Comments
 (0)