1. 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
  2. 19 12月, 2015 1 次提交
  3. 24 11月, 2015 1 次提交
  4. 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
  5. 08 7月, 2015 1 次提交
  6. 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
  7. 04 6月, 2015 1 次提交
  8. 09 5月, 2015 1 次提交
  9. 04 5月, 2015 1 次提交
  10. 30 4月, 2015 1 次提交
  11. 28 4月, 2015 2 次提交
  12. 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
  13. 08 1月, 2015 1 次提交
  14. 07 1月, 2015 1 次提交
  15. 06 1月, 2015 1 次提交
  16. 04 1月, 2015 2 次提交
  17. 01 1月, 2015 1 次提交
  18. 30 12月, 2014 1 次提交
    • R
      Template lookup now respect default locale and I18n fallbacks. · ecb1981b
      Rafael Mendonça França 提交于
      Given the following templates:
      
          mailer/demo.html.erb
          mailer/demo.en.html.erb
          mailer/demo.pt.html.erb
      
      Before this change for a locale that doesn't have its related file
      the `mailer/demo.html.erb` will
      be rendered even if `en` is the default locale.
      
      Now `mailer/demo.en.html.erb` has precedence over the file without
       locale.
      
      Also, it is possible to give a fallback.
      
          mailer/demo.pt.html.erb
          mailer/demo.pt-BR.html.erb
      
      So if the locale is `pt-PT`, `mailer/demo.pt.html.erb` will be
       rendered given the right I18n fallback configuration.
      
      Fixes #11884.
      ecb1981b
  19. 29 11月, 2014 1 次提交
  20. 28 11月, 2014 3 次提交
  21. 25 11月, 2014 2 次提交
  22. 16 10月, 2014 1 次提交
  23. 18 9月, 2014 1 次提交
  24. 20 8月, 2014 2 次提交
  25. 18 8月, 2014 1 次提交
  26. 14 8月, 2014 1 次提交
  27. 31 7月, 2014 1 次提交
    • @
      Deprecate `*_path` methods in mailers · 2bbcca00
      @schneems and @sgrif 提交于
      Email does not support relative links since there is no implicit host. Therefore all links inside of emails must be fully qualified URLs. All path helpers are now deprecated. When removed, the error will give early indication to developers to use `*_url` methods instead.
      
      Currently if a developer uses a `*_path` helper, their tests and `mail_view` will not catch the mistake. The only way to see the error is by sending emails in production. Preventing sending out emails with non-working path's is the desired end goal of this PR.
      
      Currently path helpers are mixed-in to controllers (the ActionMailer::Base acts as a controller). All `*_url` and `*_path` helpers are made available through the same module. This PR separates this behavior into two modules so we can extend the `*_path` methods to add a Deprecation to them. Once deprecated we can use this same area to raise a NoMethodError and add an informative message directing the developer to use `*_url` instead.
      
      The module with warnings is only mixed in when a controller returns false from the newly added `supports_relative_path?`.
      
      Paired @sgrif & @schneems
      2bbcca00
  28. 29 7月, 2014 1 次提交
  29. 02 7月, 2014 1 次提交
  30. 01 7月, 2014 1 次提交
    • L
      Add configuration to enable mail previews · 84ed7b8d
      Leonard Garvey 提交于
      Adds `config.action_mailer.preview_enabled`
      
      This allows mail previewing to be enabled easily in non-development
      environments such as staging. The default is set to true for development
      so no changes should be required to existing Rails applications.
      
      The mail preview path can still be configured using the existing
      `config.action_mailer.preview_path` configuration option.
      
      Adding this avoids devs from having to do stuff like:
      https://gist.github.com/lengarvey/fa2c9bd6cdbeba96526a
      
      Update actionmailer/CHANGELOG with new configuration.
      Update configuring guide with new configuratation.
      Add `config.action_mailer.preview_path` to configuring guide.
      84ed7b8d
  31. 15 6月, 2014 1 次提交
    • Y
      allow preview interceptors to be registered through `config.action_mailer`. · f59ed560
      Yves Senn 提交于
      This was partially broken because `preview_interceptors=` just assigned the
      raw values, whithout going through `register_preview_interceptor`. Now the
      Action Mailer railtie takes care of the `preview_interceptors` option.
      
      This commit is a partial revert of:
      
      Revert "Merge pull request #15739 from y-yagi/correct_doc_for_action_mailer_base"
      
      This reverts commit a15704d7, reversing
      changes made to 1bd12a86.
      
      /cc @kuldeepaggarwal @y-yagi
      f59ed560
  32. 25 2月, 2014 1 次提交
  33. 30 1月, 2014 1 次提交