mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 20:27:28 +08:00
use method name instead of __method__ (which is wrong in this situation on Debian Squeeze Ruby 1.9)
This commit is contained in:
parent
69db4ab967
commit
2031b69e6e
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user