aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Bridges <mbridges.91@gmail.com>2012-10-15 23:00:54 -0500
committerMatt Bridges <mbridges.91@gmail.com>2012-10-15 23:00:54 -0500
commit13cdfacba518509cd282e4cb42e3233265878cab (patch)
tree2d837d56a2ca73527b93f261fb1c86aab7af4972
parentd207a33e00491a73ecc43941a40a30d27cd06ba2 (diff)
downloadrails-13cdfacba518509cd282e4cb42e3233265878cab.tar.gz
rails-13cdfacba518509cd282e4cb42e3233265878cab.tar.bz2
rails-13cdfacba518509cd282e4cb42e3233265878cab.zip
Adding reference a few Time and Date aliases
I originally contributed these aliases 10 months ago and just never got it added to the Rails 4.0 release notes. Here they are.
-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`.