From 13cdfacba518509cd282e4cb42e3233265878cab Mon Sep 17 00:00:00 2001 From: Matt Bridges Date: Mon, 15 Oct 2012 23:00:54 -0500 Subject: 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. --- guides/source/4_0_release_notes.md | 4 ++++ 1 file changed, 4 insertions(+) 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`. -- cgit v1.2.3