提交 ec513098 编写于 作者: A Akira Matsuda

`respond_to_missing?` should fallback to `super` where method_missing could call `super`

上级 b99014bf
......@@ -580,7 +580,7 @@ def method_missing(method_name, *args)
end
def respond_to_missing?(method, include_all = false)
action_methods.include?(method.to_s)
action_methods.include?(method.to_s) || self
end
end
......
......@@ -298,7 +298,7 @@ def method_missing(method, *args)
end
def respond_to_missing?(method, include_private = false)
method.to_s.ends_with? "?"
(method.to_s.ends_with? "?") || super
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册