1
0
Fork 0
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:
Akira Matsuda 2017-01-15 03:58:19 +09:00
parent b99014bf44
commit ec513098fe
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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