Skip to content

Commit

Permalink
Merge pull request #1079 from jozefvaclavik/patch-1
Browse files Browse the repository at this point in the history
Correct deprecation warning for Redis.current
  • Loading branch information
byroot committed Feb 23, 2022
2 parents a7c2a5b + 0eef5f3 commit 399ebde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/redis.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def deprecate!(message)
end

def current
deprecate!("`Redis.current=` is deprecated and will be removed in 5.0. (called from: #{caller(1, 1).first})")
deprecate!("`Redis.current` is deprecated and will be removed in 5.0. (called from: #{caller(1, 1).first})")
@current ||= Redis.new
end

Expand Down

0 comments on commit 399ebde

Please sign in to comment.