use method name instead of __method__ (which is wrong in this situation on Debian Squeeze Ruby 1.9)

This commit is contained in:
Michael Witrant 2013-05-05 13:34:54 +02:00
parent 69db4ab967
commit 2031b69e6e

View File

@ -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