1. 04 6月, 2015 1 次提交
  2. 09 5月, 2015 1 次提交
  3. 04 5月, 2015 1 次提交
  4. 30 4月, 2015 1 次提交
  5. 28 4月, 2015 2 次提交
  6. 31 1月, 2015 1 次提交
  7. 08 1月, 2015 1 次提交
  8. 07 1月, 2015 1 次提交
  9. 06 1月, 2015 1 次提交
  10. 04 1月, 2015 2 次提交
  11. 01 1月, 2015 1 次提交
  12. 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
  13. 29 11月, 2014 1 次提交
  14. 28 11月, 2014 3 次提交
  15. 25 11月, 2014 2 次提交
  16. 16 10月, 2014 1 次提交
  17. 18 9月, 2014 1 次提交
  18. 20 8月, 2014 2 次提交
  19. 18 8月, 2014 1 次提交
  20. 14 8月, 2014 1 次提交
  21. 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
  22. 29 7月, 2014 1 次提交
  23. 02 7月, 2014 1 次提交
  24. 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
  25. 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
  26. 25 2月, 2014 1 次提交
  27. 30 1月, 2014 1 次提交
  28. 26 1月, 2014 2 次提交
    • A
      Support underscored symbols in Action Mailer config · 4df9cc29
      Andrew White 提交于
      We allow the use of underscored symbols to represent classes throughout
      other parts of Rails so it seems incongruous that it's not supported in
      `register_interceptor` and `register_observer`.
      4df9cc29
    • A
      Add the ability to intercept emails before previewing · 35fd8167
      Andrew White 提交于
      To support the ability for tools like CSS style inliners to operate on emails
      being previewed this commit adds a hook in a similar fashion to the existing
      delivery interceptor hook, e.g:
      
        class CSSInlineStyler
          def self.previewing_email(message)
            # inline CSS styles
          end
        end
      
        ActionMailer::Base.register_preview_interceptor CSSInlineStyler
      
      Fixes #13622.
      35fd8167
  29. 06 1月, 2014 1 次提交
  30. 17 12月, 2013 1 次提交
  31. 02 12月, 2013 1 次提交
  32. 22 11月, 2013 1 次提交
  33. 20 10月, 2013 1 次提交