diff --git a/lib/discourse_redis.rb b/lib/discourse_redis.rb index 853b5ee85c9..92a438a7d73 100644 --- a/lib/discourse_redis.rb +++ b/lib/discourse_redis.rb @@ -46,7 +46,7 @@ class DiscourseRedis zrange zrangebyscore zrank zrem zremrangebyrank zremrangebyscore zrevrange zrevrangebyscore zrevrank zrangebyscore).each do |m| define_method m do |*args| args[0] = "#{DiscourseRedis.namespace}:#{args[0]}" - @redis.send(__method__, *args) + @redis.send(m, *args) end end