1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #38053 from Shopify/actionmailer-6-0-stable-ruby-2.7-warnings

Fix Ruby 2.7 warnings in Action Mailer 6.0
This commit is contained in:
Ryuta Kamizono 2019-12-20 22:29:40 +09:00
parent 008c4669cc
commit 59e4c996b3

View file

@ -38,7 +38,13 @@ module ActiveJob
successfully_performed = false
run_callbacks :perform do
perform(*arguments)
args = arguments
options = args.extract_options!
if options.empty?
perform(*args)
else
perform(*args, **options)
end
successfully_performed = true
end