Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into adequaterecord
* master: (55 commits) [ci skip] Move association class method notes extract common code in `uuid_test.rb`. move PostgreSQL UUID tests from `datatype_test.rb` to `uuid_test.rb`. [ci skip] remove guide section on models in migrations test case for custom PostgreSQL enum type. Remove inclusion of rubysl gem for rbx on generated Gemfile let `insert_record` actuall save the object. [skip ci] Fix test name typo in app generator tests. travis s/2.1.0/2.1.1 Bump version of bcrypt gem Skip test_migrate_revert_add_index_with_name if databases do not allow to create duplicate indexes on the same columns Optimize getting started guide images, and use png instead of jpg ✂️ [ci skip] Point master changelogs to 4-1-stable branch Add missing parantheses in index_exists? `ActionDispatch::Head` was replaced by `Rack::Head`. Closes #14191. [skip ci] Standardized punctuation. [skip ci] Fix typo in link_to :method option description refactor, with_locale is not needed because I18n is mocked. Fix ActionView label translation for more than 10 nested elements ...
- Loading branch information
Showing
111 changed files
with
853 additions
and
4,484 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
4.1.0.beta2 | ||
4.2.0.alpha |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1 @@ | ||
* Support the use of underscored symbols when registering interceptors and | ||
observers like we do elsewhere within Rails. | ||
|
||
*Andrew White* | ||
|
||
* Add the ability to intercept emails before previewing in a similar fashion | ||
to how emails can be intercepted before delivery. | ||
|
||
Fixes #13622. | ||
|
||
Example: | ||
|
||
class CSSInlineStyler | ||
def self.previewing_email(message) | ||
# inline CSS styles | ||
end | ||
end | ||
|
||
ActionMailer::Base.register_preview_interceptor CSSInlineStyler | ||
|
||
*Andrew White* | ||
|
||
* Add mailer previews feature based on 37 Signals mail_view gem. | ||
|
||
*Andrew White* | ||
|
||
* Calling `mail()` without arguments serves as getter for the current mail | ||
message and keeps previously set headers. | ||
|
||
Fixes #13090. | ||
|
||
Example: | ||
|
||
class MailerWithCallback < ActionMailer::Base | ||
after_action :a_callback | ||
|
||
def welcome | ||
mail subject: "subject", to: ["joe@example.com"] | ||
end | ||
|
||
def a_callback | ||
mail # => returns the current mail message | ||
end | ||
end | ||
|
||
*Yves Senn* | ||
|
||
* Instrument the generation of Action Mailer messages. The time it takes to | ||
generate a message is written to the log. | ||
|
||
*Daniel Schierbeck* | ||
|
||
* 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. | ||
|
||
*Alex Tsukernik* | ||
|
||
Please check [4-0-stable](https://github.com/rails/rails/blob/4-0-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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.