From 9685080a7677abfa5d288a81c3e078368c6bb67c Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Sun, 23 Nov 2014 13:53:01 -0800 Subject: let mailer templates generate URLs by default [Xavier Noria, Richard Schneeman] --- actionmailer/CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'actionmailer/CHANGELOG.md') diff --git a/actionmailer/CHANGELOG.md b/actionmailer/CHANGELOG.md index 5685871ac9..1b3e802cb2 100644 --- a/actionmailer/CHANGELOG.md +++ b/actionmailer/CHANGELOG.md @@ -1,3 +1,10 @@ +* `link_to` and `url_for` generate URLs by default in templates, it is no + longer needed to pass `only_path: false`. + + Fixes #16497 and #16589. + + *Xavier Noria*, *Richard Schneeman* + * Attachments can be added while rendering the mail template. Fixes #16974. -- cgit v1.2.3 From cd902a0d1d06054019d6f60ab3580516031afceb Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Tue, 25 Nov 2014 09:28:16 +0800 Subject: Add missing CHANGELOG entry. --- actionmailer/CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'actionmailer/CHANGELOG.md') diff --git a/actionmailer/CHANGELOG.md b/actionmailer/CHANGELOG.md index 1b3e802cb2..9fdda52f77 100644 --- a/actionmailer/CHANGELOG.md +++ b/actionmailer/CHANGELOG.md @@ -1,3 +1,10 @@ +* MailerGenerator now generates layouts by default. HTML mailer layout will + include `` and `` tags which will help to reduce spam score in + some spam detection engines. Mailers will now inherit from `ApplicationMailer` + which sets the default layout. + + *Andy Jeffries* + * `link_to` and `url_for` generate URLs by default in templates, it is no longer needed to pass `only_path: false`. -- cgit v1.2.3 From e2cce6cd4138848bbfbac0ea3e48ee9388f966e1 Mon Sep 17 00:00:00 2001 From: Jon Atack Date: Thu, 27 Nov 2014 17:36:15 +0100 Subject: Action Mailer change log pass [skip ci] --- actionmailer/CHANGELOG.md | 43 +++++++++++++++++++++---------------------- 1 file changed, 21 insertions(+), 22 deletions(-) (limited to 'actionmailer/CHANGELOG.md') diff --git a/actionmailer/CHANGELOG.md b/actionmailer/CHANGELOG.md index 9fdda52f77..8d4164ee62 100644 --- a/actionmailer/CHANGELOG.md +++ b/actionmailer/CHANGELOG.md @@ -1,44 +1,42 @@ -* MailerGenerator now generates layouts by default. HTML mailer layout will - include `` and `` tags which will help to reduce spam score in - some spam detection engines. Mailers will now inherit from `ApplicationMailer` +* `MailerGenerator` now generates layouts by default. The HTML mailer layout + now includes `` and `` tags which improve the spam rating in + some spam detection engines. Mailers now inherit from `ApplicationMailer` which sets the default layout. *Andy Jeffries* -* `link_to` and `url_for` generate URLs by default in templates, it is no - longer needed to pass `only_path: false`. +* `link_to` and `url_for` now generate URLs by default in templates. + Passing `only_path: false` is longer needed. Fixes #16497 and #16589. *Xavier Noria*, *Richard Schneeman* -* Attachments can be added while rendering the mail template. +* Attachments can now be added while rendering the mail template. Fixes #16974. *Christian Felder* -* Added `#deliver_later`, `#deliver_now` and deprecate `#deliver` in favour of - `#deliver_now`. `#deliver_later` will enqueue a job to render and deliver - the mail instead of delivering it right at that moment. The job is enqueued - using the new Active Job framework in Rails, and will use whatever queue is - configured for Rails. +* Add `#deliver_later` and `#deliver_now` methods and deprecate `#deliver` in + favor of `#deliver_now`. `#deliver_later` will enqueue a job to render and + deliver the mail instead of delivering it immediately. The job is enqueued + using the new Active Job framework in Rails and will use the queue that you + have configured in Rails. *DHH*, *Abdelkader Boudih*, *Cristian Bica* -* Make `ActionMailer::Previews` methods class methods. Previously they were - instance methods and `ActionMailer` tries to render a message when they - are called. +* `ActionMailer::Previews` are now class methods instead of instance methods. *Cristian Bica* -* Deprecate `*_path` helpers in email views. When used they generate - non-working links and are not the intention of most developers. Instead - we recommend to use `*_url` helper. +* Deprecate `*_path` helpers in email views. They generated broken + links and were not the intention of most developers. The `*_url` + helper is recommended instead. *Richard Schneeman* -* Raise an exception when attachments are added after `mail` was called. +* Raise an exception when attachments are added after `mail` is called. This is a safeguard to prevent invalid emails. Fixes #16163. @@ -47,10 +45,10 @@ * Add `config.action_mailer.show_previews` configuration option. - This config option can be used to enable the mail preview in environments - other than development (such as staging). + This configuration option can be used to enable the mail preview in + environments other than development (such as staging). - Defaults to `true` in development and false elsewhere. + Defaults to `true` in development and `false` elsewhere. *Leonard Garvey* @@ -61,4 +59,5 @@ *Yves Senn* -Please check [4-1-stable](https://github.com/rails/rails/blob/4-1-stable/actionmailer/CHANGELOG.md) for previous changes. +Please check [4-1-stable](https://github.com/rails/rails/blob/4-1-stable/actionmailer/CHANGELOG.md) +for previous changes. -- cgit v1.2.3 From e2a01aef4227525eece03a922a3d37f6785376ed Mon Sep 17 00:00:00 2001 From: Zachary Scott Date: Thu, 27 Nov 2014 08:43:37 -0800 Subject: Fix CHANGELOG typo introduced in e2cce6cd [ci skip] --- actionmailer/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionmailer/CHANGELOG.md') diff --git a/actionmailer/CHANGELOG.md b/actionmailer/CHANGELOG.md index 8d4164ee62..968a21ea32 100644 --- a/actionmailer/CHANGELOG.md +++ b/actionmailer/CHANGELOG.md @@ -6,7 +6,7 @@ *Andy Jeffries* * `link_to` and `url_for` now generate URLs by default in templates. - Passing `only_path: false` is longer needed. + Passing `only_path: false` is no longer needed. Fixes #16497 and #16589. -- cgit v1.2.3 From d21d8f903ddd4c655a74909ef4d12fbcdeaa006e Mon Sep 17 00:00:00 2001 From: Jon Atack Date: Thu, 27 Nov 2014 17:46:56 +0100 Subject: Follow-up to e2cce6c [skip ci] --- actionmailer/CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionmailer/CHANGELOG.md') diff --git a/actionmailer/CHANGELOG.md b/actionmailer/CHANGELOG.md index 968a21ea32..c8b969c59a 100644 --- a/actionmailer/CHANGELOG.md +++ b/actionmailer/CHANGELOG.md @@ -30,8 +30,8 @@ *Cristian Bica* -* Deprecate `*_path` helpers in email views. They generated broken - links and were not the intention of most developers. The `*_url` +* Deprecate `*_path` helpers in email views. They generated broken links in + email views and were not the intention of most developers. The `*_url` helper is recommended instead. *Richard Schneeman* -- cgit v1.2.3 From f25ad07f5ade46eb978fa82658463232d0247c65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Fri, 28 Nov 2014 15:00:06 -0200 Subject: Start Rails 5 development :tada: 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. --- actionmailer/CHANGELOG.md | 64 +---------------------------------------------- 1 file changed, 1 insertion(+), 63 deletions(-) (limited to 'actionmailer/CHANGELOG.md') diff --git a/actionmailer/CHANGELOG.md b/actionmailer/CHANGELOG.md index c8b969c59a..88b0962e8c 100644 --- a/actionmailer/CHANGELOG.md +++ b/actionmailer/CHANGELOG.md @@ -1,63 +1 @@ -* `MailerGenerator` now generates layouts by default. The HTML mailer layout - now includes `` and `` tags which improve the spam rating in - some spam detection engines. Mailers now inherit from `ApplicationMailer` - which sets the default layout. - - *Andy Jeffries* - -* `link_to` and `url_for` now generate URLs by default in templates. - Passing `only_path: false` is no longer needed. - - Fixes #16497 and #16589. - - *Xavier Noria*, *Richard Schneeman* - -* Attachments can now be added while rendering the mail template. - - Fixes #16974. - - *Christian Felder* - -* Add `#deliver_later` and `#deliver_now` methods and deprecate `#deliver` in - favor of `#deliver_now`. `#deliver_later` will enqueue a job to render and - deliver the mail instead of delivering it immediately. The job is enqueued - using the new Active Job framework in Rails and will use the queue that you - have configured in Rails. - - *DHH*, *Abdelkader Boudih*, *Cristian Bica* - -* `ActionMailer::Previews` are now class methods instead of instance methods. - - *Cristian Bica* - -* Deprecate `*_path` helpers in email views. They generated broken links in - email views and were not the intention of most developers. The `*_url` - helper is recommended instead. - - *Richard Schneeman* - -* Raise an exception when attachments are added after `mail` is called. - This is a safeguard to prevent invalid emails. - - Fixes #16163. - - *Yves Senn* - -* Add `config.action_mailer.show_previews` configuration option. - - This configuration option can be used to enable the mail preview in - environments other than development (such as staging). - - Defaults to `true` in development and `false` elsewhere. - - *Leonard Garvey* - -* Allow preview interceptors to be registered through - `config.action_mailer.preview_interceptors`. - - See #15739. - - *Yves Senn* - -Please check [4-1-stable](https://github.com/rails/rails/blob/4-1-stable/actionmailer/CHANGELOG.md) -for previous changes. +Please check [4-2-stable](https://github.com/rails/rails/blob/4-2-stable/actionmailer/CHANGELOG.md) for previous changes. -- cgit v1.2.3