提交 e899dfac 编写于 作者: R Ryan Buckley

Replace ActionMailer::Base#respond_to? with respond_to_missing?

上级 215f86c3
......@@ -541,8 +541,8 @@ def deliver_mail(mail) #:nodoc:
end
end
def respond_to?(method, include_private = false) #:nodoc:
super || action_methods.include?(method.to_s)
def respond_to_missing?(method, include_private = false) #:nodoc:
action_methods.include?(method.to_s)
end
protected
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册