1. 07 5月, 2020 1 次提交
  2. 02 5月, 2020 1 次提交
  3. 31 3月, 2020 1 次提交
  4. 19 12月, 2019 1 次提交
  5. 14 12月, 2019 1 次提交
  6. 10 12月, 2019 1 次提交
  7. 27 11月, 2019 1 次提交
  8. 05 11月, 2019 1 次提交
  9. 01 11月, 2019 1 次提交
  10. 31 10月, 2019 1 次提交
    • K
      Merge pull request #37608 from... · 7601b18a
      Kasper Timm Hansen 提交于
      Merge pull request #37608 from bogdanvlviv/fix-assertions-for-mail-with-legacy-parameterized-delivery-job
      
      Fix ActionMailer assertions don't work for parameterized mail with legacy delivery job
      7601b18a
  11. 17 8月, 2019 1 次提交
  12. 23 7月, 2019 1 次提交
  13. 25 4月, 2019 1 次提交
  14. 11 3月, 2019 1 次提交
    • E
      Prep release · 7c87fd56
      eileencodes 提交于
      * Update RAILS_VERSION
      * Bundle
      * rake update_versions
      * rake changelog:header
      7c87fd56
  15. 26 2月, 2019 1 次提交
  16. 19 1月, 2019 1 次提交
  17. 28 12月, 2018 1 次提交
  18. 20 12月, 2018 1 次提交
  19. 05 12月, 2018 1 次提交
  20. 23 11月, 2018 1 次提交
  21. 22 11月, 2018 1 次提交
    • E
      Fix ActionMailer assertion not working for mail defining delivery_job: · e139a3ce
      Edouard CHIN 提交于
      - 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.
      e139a3ce
  22. 06 10月, 2018 1 次提交
    • L
      Parameterized mailers can configure delivery job · c90c6c13
      Luke Pearce 提交于
      Setting parameterized_delivery_job on a mailer class will cause Parameterized::MessageDelivery to use
      the specified job instead of ActionMailer::Parameterized::DeliveryJob:
      
          class MyMailer < ApplicationMailer
            self.parameterized_delivery_job = MyCustomDeliveryJob
            ...
          end
      c90c6c13
  23. 13 9月, 2018 1 次提交
  24. 09 9月, 2018 1 次提交
  25. 08 9月, 2018 1 次提交
  26. 29 6月, 2018 1 次提交
    • B
      Allow call `assert_enqueued_with` and `assert_enqueued_email_with` with no block · 4382fcbc
      bogdanvlviv 提交于
      Example of `assert_enqueued_with` with no block
      ```ruby
      def test_assert_enqueued_with
        MyJob.perform_later(1,2,3)
        assert_enqueued_with(job: MyJob, args: [1,2,3], queue: 'low')
      
        MyJob.set(wait_until: Date.tomorrow.noon).perform_later
        assert_enqueued_with(job: MyJob, at: Date.tomorrow.noon)
      end
      ```
      
      Example of `assert_enqueued_email_with` with no block:
      ```ruby
      def test_email
        ContactMailer.welcome.deliver_later
        assert_enqueued_email_with ContactMailer, :welcome
      end
      
      def test_email_with_arguments
        ContactMailer.welcome("Hello", "Goodbye").deliver_later
        assert_enqueued_email_with ContactMailer, :welcome, args: ["Hello", "Goodbye"]
      end
      ```
      
      Related to #33243
      4382fcbc
  27. 31 5月, 2018 1 次提交
    • K
      ActionMailer::Base can unregister observer(s) and interceptor(s). (#32207) · b74edd37
      Kota Miyake 提交于
      * ActionMailer::Base can unregister observer(s) and interceptor(s).
      
      One or multiple mail observers can be unregistered using
      `ActionMailer::Base.unregister_observers` or
      `ActionMailer::Base.unregister_observer`.
      
      One or multiple mail interceptors can be unregistered using
      `ActionMailer::Base.unregister_interceptors` or
      `ActionMailer::Base.unregister_interceptor`.
      
      For preview interceptors, it's possible to use
      `ActionMailer::Base.unregister_preview_interceptors` or
      `ActionMailer::Base.unregister_preview_interceptor`.
      
      * Ensure to be reset registered observer(s) and interceptor(s)
      
      * Add explanation to CHANGELOG
      
      * Add original author's name
      
      [Kota Miyake + Rafael Mendonça França + Claudio Ortolina]
      b74edd37
  28. 24 5月, 2018 1 次提交
    • S
      Eager autoload mail gem when eager load is true (#32808) · 4d43b058
      Samuel Cochran 提交于
      * Eager autoload mail gem when eager load is true
      
      We had a production issue where our Sidekiq worker threads all became
      deadlocked while autoloading a file within the mail gem, required via
      ActionMailer, despite setting our Rails applicaiton to eager load.
      `Mail.eager_autoload!` exists and works great, ActionMailer just doesn't
      call it during eager loading. Adding it to the ActionMailer Railtie's
      eager_load_namespaces takes care of calling `Mail.eager_autoload!`
      during the `eager_load!` initializer.
      
      * 'Mail' isn't defined yet, use before_eager_load instead
      
      * Make sure mail is loaded
      
      * Move eager load of Mail into ActionMailer.eager_load!
      
      [Samuel Cochran + Rafael Mendonça França]
      4d43b058
  29. 18 2月, 2018 1 次提交
  30. 31 1月, 2018 1 次提交
  31. 29 11月, 2017 1 次提交
  32. 28 11月, 2017 1 次提交
  33. 04 10月, 2017 1 次提交
  34. 28 9月, 2017 1 次提交
  35. 29 8月, 2017 1 次提交
    • J
      Fix AM::Base.default proc arity breaking change · fbb2fc8a
      Jimmy Bourassa 提交于
      PR #29270 changed the number of arguments that gets passed to Procs
      defined in ActionMail::Base.default. With this changeset, Procs can
      now have 1 or 0 arguments
      
      Also adds test coverage for AM::Base.default Proc arity.
      fbb2fc8a
  36. 15 6月, 2017 2 次提交
  37. 22 3月, 2017 1 次提交
  38. 24 2月, 2017 1 次提交
  39. 22 2月, 2017 1 次提交