1. 28 9月, 2017 1 次提交
  2. 15 6月, 2017 2 次提交
  3. 22 3月, 2017 1 次提交
  4. 24 2月, 2017 1 次提交
  5. 22 2月, 2017 1 次提交
  6. 04 2月, 2017 1 次提交
  7. 28 1月, 2017 1 次提交
  8. 01 12月, 2016 1 次提交
  9. 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
  10. 10 5月, 2016 1 次提交
  11. 07 5月, 2016 1 次提交
  12. 28 4月, 2016 1 次提交
  13. 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
  14. 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
  15. 06 4月, 2016 1 次提交
  16. 30 3月, 2016 1 次提交
  17. 25 2月, 2016 1 次提交
  18. 24 2月, 2016 1 次提交
  19. 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
  20. 02 2月, 2016 1 次提交
  21. 22 12月, 2015 1 次提交
  22. 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
  23. 19 12月, 2015 1 次提交
  24. 24 11月, 2015 1 次提交
  25. 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
  26. 08 7月, 2015 1 次提交
  27. 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
  28. 04 6月, 2015 1 次提交
  29. 09 5月, 2015 1 次提交
  30. 04 5月, 2015 1 次提交
  31. 30 4月, 2015 1 次提交
  32. 28 4月, 2015 2 次提交
  33. 31 1月, 2015 2 次提交
    • C
      ActionMailer::Base can unregister interceptor(s). · ff5fcf65
      Claudio Ortolina 提交于
      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`.
      
      Refactors logic to constantize a string/symbol into separate method.
      ff5fcf65
    • Y
      unify CHANGELOG format. [ci skip] · afe402da
      Yves Senn 提交于
      afe402da
  34. 08 1月, 2015 1 次提交
  35. 07 1月, 2015 1 次提交
  36. 06 1月, 2015 1 次提交
  37. 04 1月, 2015 1 次提交