1. 18 2月, 2018 1 次提交
  2. 31 1月, 2018 1 次提交
  3. 29 11月, 2017 1 次提交
  4. 28 11月, 2017 1 次提交
  5. 04 10月, 2017 1 次提交
  6. 28 9月, 2017 1 次提交
  7. 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
  8. 15 6月, 2017 2 次提交
  9. 22 3月, 2017 1 次提交
  10. 24 2月, 2017 1 次提交
  11. 22 2月, 2017 1 次提交
  12. 04 2月, 2017 1 次提交
  13. 28 1月, 2017 1 次提交
  14. 01 12月, 2016 1 次提交
  15. 16 5月, 2016 1 次提交
    • J
      Action Mailer: Declarative exception handling with `rescue_from`. · e35b98e6
      Jeremy Daer 提交于
      Follows the same pattern as controllers and jobs. Exceptions raised in
      delivery jobs (enqueued by `#deliver_later`) are also delegated to the
      mailer's rescue_from handlers, so you can handle the DeserializationError
      raised by delivery jobs:
      
      ```ruby
      class MyMailer < ApplicationMailer
        rescue_from ActiveJob::DeserializationError do
          …
        end
      ```
      
      ActiveSupport::Rescuable polish:
      * Add the `rescue_with_handler` class method so exceptions may be
        handled at the class level without requiring an instance.
      * Rationalize `exception.cause` handling. If no handler matches the
        exception, fall back to the handler that matches its cause.
      * Handle exceptions raised elsewhere. Pass `object: …` to execute
        the `rescue_from` handler (e.g. a method call or a block to
        instance_exec) against a different object. Defaults to `self`.
      e35b98e6
  16. 10 5月, 2016 1 次提交
  17. 07 5月, 2016 1 次提交
  18. 28 4月, 2016 1 次提交
  19. 11 4月, 2016 1 次提交
    • V
      Pass over AM changelog · 829650eb
      Vipul A M 提交于
      - Fixed statement about setting `config.action_mailer.default_url_options = {protocol: 'https'}` . We are just setting the protocol key to 'https', not replacing/initializing the complete config.
      - Fixed grammar in assert_emails changlog
      - Added sentence separator for code ":"
      
      [ci skip]
      829650eb
  20. 08 4月, 2016 1 次提交
    • J
      Disallow calling `#deliver_later` after local message modifications. · 95e06e66
      Jeremy Daer 提交于
      They would be lost when the delivery job is enqueued, otherwise.
      Prevents a common, hard-to-find bug like:
      
      ```ruby
      message = Notifier.welcome(user, foo)
      message.message_id = my_generated_message_id
      message.deliver_later
      ```
      
      The message_id is silently lost here! *Only the mailer arguments are
      passed to the delivery job.*
      
      This raises an exception now.
      
      Make modifications to the message within the mailer method or use a
      custom Active Job to manage delivery instead of using #deliver_later.
      95e06e66
  21. 06 4月, 2016 1 次提交
  22. 30 3月, 2016 1 次提交
  23. 25 2月, 2016 1 次提交
  24. 24 2月, 2016 1 次提交
  25. 16 2月, 2016 1 次提交
    • Y
      reset `ActionMailer::Base.deliveries` in `ActionDispatch::IntegrationTest`. · 9d378747
      Yves Senn 提交于
      Whenever you are sending emails in integration tests using the `:test`
      delivery method you need to make sure that
      `ActionMailer::Base.deliveries` is reset after every test. This piece of
      boilerplate code is present in all my applications that send
      emails. Let's have `ActionDispatch::IntegrationTest` reset the
      deliveries automatically.
      9d378747
  26. 02 2月, 2016 1 次提交
  27. 22 12月, 2015 1 次提交
  28. 21 12月, 2015 1 次提交
    • G
      No more no changes entries in the CHANGELOGs · c5b6ec7b
      Genadi Samokovarov 提交于
      During the `5.0.0.beta1` release, the CHANGELOGs got an entry like the
      following:
      
      ```
      * No changes.
      ```
      
      It is kinda confusing as there are indeed changes after it. Not a
      biggie, just a small pass over the CHANGELOGs.
      
      [ci skip]
      c5b6ec7b
  29. 19 12月, 2015 1 次提交
  30. 24 11月, 2015 1 次提交
  31. 14 8月, 2015 1 次提交
    • A
      ActionMailer https on URL with force_ssl = true · f0a3af20
      Andrew Kampjes 提交于
      `config.force_ssl = true` will set
      config.action_mailer.default_url_options = { protocol: 'https' }
      
      If you have turned on force_ssl, and then gone to the effort of setting
      config.action_mailer.default_url_options = {host: 'example.com'} then
      you are probably pointing people back to your current app and want
      https on that too.
      f0a3af20
  32. 08 7月, 2015 1 次提交
  33. 06 7月, 2015 1 次提交
    • J
      ActionMailer::MessageDelivery respects current I18n.locale · ca2387eb
      Johannes Opper 提交于
      When #deliver_now is called all translations within the
      generated email will be looked up for the current I18n
      locale.
      
          I18n.locale = ‘de’
          mail.deliver_now # Generates german email, correct
      
      In #enqueue_delivery the locale was not considered and
      the resulting job uses the default locale.
      
          I18n.locale = ‘de’
          mail.deliver_later # Generate english email, incorrect
      
      In order to achieve a consistent behaviour the current locale
      is now always passed to `ActionMailer::DeliveryJob`.
      ca2387eb
  34. 04 6月, 2015 1 次提交
  35. 09 5月, 2015 1 次提交
  36. 04 5月, 2015 1 次提交
  37. 30 4月, 2015 1 次提交
  38. 28 4月, 2015 2 次提交