Replace ActionMailer::Base#respond_to? with respond_to_missing?
This commit is contained in:
parent
215f86c348
commit
e899dfac47
@ -541,8 +541,8 @@ def deliver_mail(mail) #:nodoc:
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def respond_to?(method, include_private = false) #:nodoc:
|
def respond_to_missing?(method, include_private = false) #:nodoc:
|
||||||
super || action_methods.include?(method.to_s)
|
action_methods.include?(method.to_s)
|
||||||
end
|
end
|
||||||
|
|
||||||
protected
|
protected
|
||||||
|
Loading…
Reference in New Issue
Block a user