diff options
author | Yves Senn <yves.senn@gmail.com> | 2013-11-28 17:21:18 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2013-11-28 17:24:15 +0100 |
commit | 7c6d99e81e05be57b884cbfed4e12986669bd5b4 (patch) | |
tree | 5c57f3b94be15c4b13565ccd02f961313dc913a2 /activesupport | |
parent | 8c944dea76cb24bc6d12a275f5afe548e65059a1 (diff) | |
download | rails-7c6d99e81e05be57b884cbfed4e12986669bd5b4.tar.gz rails-7c6d99e81e05be57b884cbfed4e12986669bd5b4.tar.bz2 rails-7c6d99e81e05be57b884cbfed4e12986669bd5b4.zip |
first pass through CHANGELOGS to extract 4_1_release_notes. [ci skip]
Extract **notable changes**, **deprecations** and **removals** from
each CHANGELOG.
I tried to reference the commits and pull requests for new features
and deprecations.
In the process I also made some minor changes to the CHANGELOGS.
The 4_1_release_notes guide is declared WIP.
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/CHANGELOG.md | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/activesupport/CHANGELOG.md b/activesupport/CHANGELOG.md index 2d51a264ee..9c7078b9a4 100644 --- a/activesupport/CHANGELOG.md +++ b/activesupport/CHANGELOG.md @@ -1,15 +1,15 @@ -* Deprecated Numeric#{ago,until,since,from_now}, the user is expected to explicitly - convert the value into an AS::Duration, i.e. 5.ago => 5.seconds.ago +* Deprecated `Numeric#{ago,until,since,from_now}`, the user is expected to explicitly + convert the value into an AS::Duration, i.e. `5.ago` => `5.seconds.ago` This will help to catch subtle bugs like: - def recent?(days = 3) - self.created_at >= days.ago - end + def recent?(days = 3) + self.created_at >= days.ago + end The above code would check if the model is created within the last 3 **seconds**. - In the future, Numeric#{ago,until,since,from_now} should be removed completely, + In the future, `Numeric#{ago,until,since,from_now}` should be removed completely, or throw some sort of errors to indicate there are no implicit conversion from Numeric to AS::Duration. @@ -177,7 +177,8 @@ *Simon Coffey* -* Add String#remove(pattern) as a short-hand for the common pattern of String#gsub(pattern, '') +* Add `String#remove(pattern)` as a short-hand for the common pattern of + `String#gsub(pattern, '')`. *DHH* @@ -280,11 +281,12 @@ *Carlos Antonio da Silva* -* Remove deprecated `BufferedLogger`. +* Remove deprecated `BufferedLogger`, use `ActiveSupport::Logger` instead. *Yves Senn* -* Remove deprecated `assert_present` and `assert_blank` methods. +* Remove deprecated `assert_present` and `assert_blank` methods, use `assert + object.blank?` and `assert object.present?` instead. *Yves Senn* |