aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/CHANGELOG.md
Commit message (Collapse)AuthorAgeFilesLines
* Changelog edits [ci skip]Robin Dupret2014-12-311-14/+14
|
* Template lookup now respect default locale and I18n fallbacks.Rafael Mendonça França2014-12-291-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Start Rails 5 development :tada:Rafael Mendonça França2014-11-281-63/+1
| | | | | | | We will support only Ruby >= 2.1. But right now we don't accept pull requests with syntax changes to drop support to Ruby 1.9.
* Follow-up to e2cce6cJon Atack2014-11-271-2/+2
| | | [skip ci]
* Fix CHANGELOG typo introduced in e2cce6cd [ci skip]Zachary Scott2014-11-271-1/+1
|
* Action Mailer change log passJon Atack2014-11-271-22/+21
| | | [skip ci]
* Add missing CHANGELOG entry.Guo Xiang Tan2014-11-251-0/+7
|
* let mailer templates generate URLs by default [Xavier Noria, Richard Schneeman]Xavier Noria2014-11-241-0/+7
|
* some changelog formatting. [ci skip]Yves Senn2014-10-161-1/+1
|
* Merge pull request #16974 from silp-com/mail_was_calledYves Senn2014-09-221-0/+6
| | | | ActionMailer: mark mail as called after instead of before processing it
* [ci skip] ActionView and ActionMailer CHANGELOG docs fixesAkshay Vishnoi2014-09-181-4/+4
|
* Updated rdoc / guides / release notes related to ActiveJob / ActionMailerCristian Bica2014-08-201-4/+6
|
* Extra spaceDavid Heinemeier Hansson2014-08-191-1/+0
|
* Add CHANGELOG entry for #deliver_laterDavid Heinemeier Hansson2014-08-171-0/+7
|
* Make ActionMailer::Previews methods class methods.Abdelkader Boudih2014-08-141-0/+6
|
* Deprecate `*_path` methods in mailers@schneems and @sgrif2014-07-301-0/+6
| | | | | | | | | | | 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
* Raise an exception when attachments are added after `mail` was called.Yves Senn2014-07-291-0/+7
| | | | | | | | | Closes #16163 Adding attachments after a call to `mail` will result in invalid emails. This is related to the fact, that `mail` is making the required preparations before the email is ready to be sent. These change depending on your added attachments.
* Rename preview_enabled option to show_previewsRafael Mendonça França2014-07-011-1/+1
|
* Add configuration to enable mail previewsLeonard Garvey2014-07-011-0/+9
| | | | | | | | | | | | | | | | | | 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.
* allow preview interceptors to be registered through `config.action_mailer`.Yves Senn2014-06-151-0/+7
| | | | | | | | | | | | | | | 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 a15704d7f35f17d34d0118546799141d6f853656, reversing changes made to 1bd12a8609d275ad75fcc4b622ca4f5b32dc76be. /cc @kuldeepaggarwal @y-yagi
* Point master changelogs to 4-1-stable branchCarlos Antonio da Silva2014-02-251-61/+1
| | | | Remove 4-1 related entries from master [ci skip]
* tidy CHANGELOGs [ci skip]Yves Senn2014-01-301-4/+6
|
* Support underscored symbols in Action Mailer configAndrew White2014-01-261-0/+5
| | | | | | 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`.
* Add the ability to intercept emails before previewingAndrew White2014-01-261-0/+15
| | | | | | | | | | | | | | | | 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.
* quick formatting pass through CHANGELOGS. [ci skip].Yves Senn2014-01-061-0/+2
|
* Add mailer previews feature based on mail_view gemAndrew White2013-12-171-0/+4
|
* `mail()` without arguments is a getter for the current mail.Yves Senn2013-12-021-0/+19
| | | | | | | | | | | | | | This behavior is documented in our guides (http://edgeguides.rubyonrails.org/action_mailer_basics.html#action-mailer-callbacks) but was broken in the past. This commit short curcuits the `mail` method if: 1. mail() was previously called 2. no headers are passed 3. no block is passed Closes #13090. /cc @pixeltrix
* Improve changelogsCarlos Antonio da Silva2013-11-221-7/+9
| | | | | Also make Action Mailer changelog format more consistent with the others [ci skip]
* Instrument the generation of Action Mailer messagesDaniel Schierbeck2013-10-201-0/+5
| | | | | | The processing of outbound mail is instrumented with the key `process.action_mailer`. The payload includes the mailer name as well as the mailer method.
* don't convert mailer default values to procsAlex Tsukernik2013-07-221-1/+5
| | | | | | Invoke mailer defaults as procs only if they are procs, do not convert with to_proc. That an object is convertible to a proc does not mean it's meant to be always used as a proc. Fixes #11533
* No need CHANGELOG entry for a test fixRafael Mendonça França2013-05-201-4/+1
| | | | [ci skip]
* Fix AM testcase break with mail 2.5.4. It seems that AM's testcase was wrong.kennyj2013-05-171-1/+4
|
* rails/master is now 4.1.0.betaRafael Mendonça França2013-04-291-61/+2
|
* copy-edit pass in AM changelog [ci skip]Xavier Noria2013-04-091-9/+11
|
* Use "Fixes" in place of "Fix" in changelogs for consistency [ci skip].Yves Senn2013-03-091-2/+2
|
* Update CHANGELOGSRafael Mendonça França2013-02-261-0/+3
|
* Preparing for 4.0.0.beta1 releaseDavid Heinemeier Hansson2013-02-251-1/+1
|
* Allow passing interpolations to `#default_i18n_subject`, e.g.:Olek Janiszewski2013-01-241-1/+18
| | | | | | | | | | | | | | | # config/locales/en.yml en: user_mailer: welcome: subject: 'Hello, %{username}' # app/mailers/user_mailer.rb class UserMailer < ActionMailer::Base def welcome(user) mail(subject: default_i18n_subject(username: user.name)) end end
* Merge pull request #8568 from inossidabile/fix-in_clause_lengthJon Leighton2013-01-111-0/+5
|\ | | | | Correct source for in_clause_length for eager loading (Fix for #8474)
| * Eager loading made to use relation's in_clause_length instead of host's one ↵Boris Staal2012-12-201-0/+5
| | | | | | | | (fixes #8474)
* | Move background jobs to the 'jobs' branch until fully baked. Not shipping ↵Jeremy Kemper2012-12-211-2/+0
|/ | | | with Rails 4.0.
* Fix Action Mailer changelog indenation to match other changelogsCarlos Antonio da Silva2012-12-191-23/+23
| | | | Also some minor improvements to other changelogs. [ci skip]
* Convert changelogs to 1.9 hash style and fix some formatting [ci skip]Carlos Antonio da Silva2012-12-141-2/+2
|
* The return value from mailer methods is not relevant.Yves Senn2012-12-101-1/+1
|
* Explicit multipart messages respect :parts_orderNate Berkopec2012-11-191-0/+3
| | | | | | | | | As issue #7978, the order in which ActionMailer sends multipart messages could be unintentionally overwritten if a block is passed to the mail method. This changes the mail method such that :parts_order is always respected, regardless of whether a block is passed to mail.
* Revert "Support `Mailer.deliver_foo(*args)` as a synonym for ↵Jon Leighton2012-10-301-5/+0
| | | | | | | | | | | | `Mailer.foo(*args).deliver`." This reverts commit 7e0cf563639bc7508da381b1b8321c7a89be1aa8. Conflicts: actionmailer/CHANGELOG.md See discussion at https://github.com/rails/rails/commit/7e0cf563639bc7508da381b1b8321c7a89be1aa8#commitcomment-2075489
* Do not render views when mail() isn't called. (NullMail refactoring)Yves Senn2012-10-281-0/+5
|
* Add missing CHANGELOG related to addition of callbacks to mailers.Aditya Sanghi2012-10-101-0/+4
|
* Support `Mailer.deliver_foo(*args)` as a synonym for ↵Jon Leighton2012-09-281-0/+5
| | | | | | | `Mailer.foo(*args).deliver`. This makes it easy to write e.g. `Mailer.expects(:deliver_foo)` when testing code that calls the mailer.
* fix bad changelog exampleAditya Sanghi2012-09-071-1/+1
|