mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
respond_to_missing?
should fallback to super
where method_missing could call super
This commit is contained in:
parent
b99014bf44
commit
ec513098fe
2 changed files with 2 additions and 2 deletions
|
@ -580,7 +580,7 @@ module ActionMailer
|
|||
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 @@ module Mime
|
|||
end
|
||||
|
||||
def respond_to_missing?(method, include_private = false)
|
||||
method.to_s.ends_with? "?"
|
||||
(method.to_s.ends_with? "?") || super
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue