提交 1c66f85e 编写于 作者: Y Yehuda Katz

This code was needed to work around...

This code was needed to work around http://redmine.ruby-lang.org/issues/show/2494. Since that bug is now closed in Ruby, we can remove it.
上级 3b1642c2
......@@ -43,10 +43,7 @@ def id
private
def method_missing(method, *args, &block)
# Ruby 1.9.2: disallow explicit coercion via method_missing.
if method == :to_ary || method == :to_str
raise NoMethodError, "undefined method `#{method}' for nil:NilClass"
elsif klass = METHOD_CLASS_MAP[method]
if klass = METHOD_CLASS_MAP[method]
raise_nil_warning_for klass, method, caller
else
super
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册