1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

No need for &block here.

This commit is contained in:
José Valim 2011-04-29 20:15:19 +02:00
parent 58ad5e1859
commit 0c76eb1106

View file

@ -41,7 +41,7 @@ class NilClass
end
private
def method_missing(method, *args, &block)
def method_missing(method, *args)
if klass = METHOD_CLASS_MAP[method]
raise_nil_warning_for klass, method, caller
else