Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Adding reference a few Time and Date aliases in Rails 4.0 release notes #7958

Merged
merged 1 commit into from

2 participants

@mattdbridges

I originally contributed these aliases 10 months ago and just never got it added to the Rails 4.0 release notes. Here they are.

@mattdbridges mattdbridges 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.
13cdfac
@mattdbridges

See #4284 for merge info.

@spastorino spastorino merged commit d1fb675 into rails:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 16, 2012
  1. @mattdbridges

    Adding reference a few Time and Date aliases

    mattdbridges authored
    I originally contributed these aliases 10 months ago and just never got
    it added to the Rails 4.0 release notes. Here they are.
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 0 deletions.
  1. +4 −0 guides/source/4_0_release_notes.md
View
4 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`.
Something went wrong with that request. Please try again.