mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 01:47:22 +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|
|
zrange zrangebyscore zrank zrem zremrangebyrank zremrangebyscore zrevrange zrevrangebyscore zrevrank zrangebyscore).each do |m|
|
||||||
define_method m do |*args|
|
define_method m do |*args|
|
||||||
args[0] = "#{DiscourseRedis.namespace}:#{args[0]}"
|
args[0] = "#{DiscourseRedis.namespace}:#{args[0]}"
|
||||||
@redis.send(__method__, *args)
|
@redis.send(m, *args)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user