Permalink
Browse files

Merge pull request #7958 from mattdbridges/rails-guides-active-suppor…

…t-addition

Adding reference a few Time and Date aliases in Rails 4.0 release notes
  • Loading branch information...
spastorino committed Oct 16, 2012
2 parents d207a33 + 13cdfac commit d1fb675a104d5ee07ce786c7b99be9897a0ea766
Showing with 4 additions and 0 deletions.
  1. +4 −0 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`.

0 comments on commit d1fb675

Please sign in to comment.