rails--rails/actionmailer/lib
Edouard CHIN e139a3ce13 Fix ActionMailer assertion not working for mail defining delivery_job:
- If a Mail defines a custom delivery_job, all ActionMailer assertion
  helper (assert_emails, assert_enqueued_emails ...) wouldn't work.

  ```ruby
    MyMailer < ApplicationMailer
      self.delivery_job = MyJob
    end

    # This assertion will fail
    assert_emails(1) do
      MyMailer.my_mail.deliver_later
    end

  This PR leverage the new ActiveJob feature that accepts Procs for the
  `only` keyword and check if the delivery job is one of ActionMailer
   registered ones.
2018-11-21 23:17:04 +01:00
..
action_mailer Fix ActionMailer assertion not working for mail defining delivery_job: 2018-11-21 23:17:04 +01:00
rails/generators/mailer Strip duplicated suffixes more strictly 2018-04-22 14:30:07 +09:00
action_mailer.rb Eager autoload mail gem when eager load is true (#32808) 2018-05-23 16:50:36 -04:00