4 def perform(mailer, mail_method, delivery_method, *args, **kwargs)
5 kwargs = args.pop if kwargs.empty? && args.last.is_a?(Hash)
7 super(mailer, mail_method, delivery_method, *args, **kwargs)
13 ActionMailer::MailDeliveryJob.prepend(OpenStreetMap::ActionMailer::MailDeliveryJob)