提交 d1fb675a 编写于 作者: S Santiago Pastorino

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
...@@ -810,6 +810,10 @@ Active Support ...@@ -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#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. * Remove obsolete and unused `require_association` method from dependencies.
* Add `:instance_accessor` option for `config_accessor`. * Add `:instance_accessor` option for `config_accessor`.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册