aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2012-10-15 21:27:57 -0700
committerSantiago Pastorino <santiago@wyeworks.com>2012-10-15 21:27:57 -0700
commitd1fb675a104d5ee07ce786c7b99be9897a0ea766 (patch)
tree2d837d56a2ca73527b93f261fb1c86aab7af4972
parentd207a33e00491a73ecc43941a40a30d27cd06ba2 (diff)
parent13cdfacba518509cd282e4cb42e3233265878cab (diff)
downloadrails-d1fb675a104d5ee07ce786c7b99be9897a0ea766.tar.gz
rails-d1fb675a104d5ee07ce786c7b99be9897a0ea766.tar.bz2
rails-d1fb675a104d5ee07ce786c7b99be9897a0ea766.zip
Merge pull request #7958 from mattdbridges/rails-guides-active-support-addition
Adding reference a few Time and Date aliases in Rails 4.0 release notes
-rw-r--r--guides/source/4_0_release_notes.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/guides/source/4_0_release_notes.md b/guides/source/4_0_release_notes.md
index c909ef1496..6b3680aa2d 100644
--- a/guides/source/4_0_release_notes.md
+++ b/guides/source/4_0_release_notes.md
@@ -810,6 +810,10 @@ Active Support
* Add `Time#prev_quarter` and `Time#next_quarter` short-hands for `months_ago(3)` and `months_since(3)`.
+* Add `Time#last_week`, `Time#last_month`, `Time#last_year` as aliases for `Time#prev_week`, `Time#prev_month`, and `Time#prev_year`.
+
+* Add `Date#last_week`, `Date#last_month`, `Date#last_year` as aliases for `Date#prev_week`, `Date#prev_month`, and `Date#prev_year`.
+
* Remove obsolete and unused `require_association` method from dependencies.
* Add `:instance_accessor` option for `config_accessor`.