]> git.openstreetmap.org Git - rails.git/blob - config/initializers/mail_delivery_job.rb
Merge remote-tracking branch 'upstream/pull/3126'
[rails.git] / config / initializers / mail_delivery_job.rb
1 module OpenStreetMap
2   module ActionMailer
3     module MailDeliveryJob
4       def perform(mailer, mail_method, delivery_method, *args, **kwargs)
5         kwargs = args.pop if kwargs.empty? && args.last.is_a?(Hash)
6
7         super(mailer, mail_method, delivery_method, *args, **kwargs)
8       end
9     end
10   end
11 end
12
13 ActionMailer::MailDeliveryJob.prepend(OpenStreetMap::ActionMailer::MailDeliveryJob)