lib/action_mailer/base.rb in actionmailer-7.1.5 vs lib/action_mailer/base.rb in actionmailer-7.2.0.beta1
- old
+ new
@@ -623,21 +623,20 @@
payload[:cc] = mail.cc if mail.cc.present?
payload[:date] = mail.date
payload[:perform_deliveries] = mail.perform_deliveries
end
- def method_missing(method_name, *args)
- if action_methods.include?(method_name.to_s)
- MessageDelivery.new(self, method_name, *args)
+ def method_missing(method_name, ...)
+ if action_methods.include?(method_name.name)
+ MessageDelivery.new(self, method_name, ...)
else
super
end
end
- ruby2_keywords(:method_missing)
def respond_to_missing?(method, include_all = false)
- action_methods.include?(method.to_s) || super
+ action_methods.include?(method.name) || super
end
end
attr_internal :message
@@ -667,10 +666,10 @@
def respond_to?(string, include_all = false)
true
end
- def method_missing(*args)
+ def method_missing(...)
nil
end
end
# Returns the name of the mailer object.