Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove duplication from date_time calculations #11681

Merged
merged 1 commit into from
Jul 31, 2013

Conversation

gzohari
Copy link
Contributor

@gzohari gzohari commented Jul 31, 2013

Methods: past? and future? are already defined identically
in date_and_time/calculations.rb which is included in Date.
Because DateTime is a subclass of Date, it can call them.

/cc @pixeltrix

Methods: :past? and :future? are already defined identically
in date_and_time/calculations.rb which is included in Date.
Because DateTime is a subclass of Date, it can call them.
@gzohari
Copy link
Contributor Author

gzohari commented Jul 31, 2013

Build failure is not related to this code change and is happening on master due to an earlier commit.

pixeltrix added a commit that referenced this pull request Jul 31, 2013
Remove duplication from date_time calculations
@pixeltrix pixeltrix merged commit 742d1f2 into rails:master Jul 31, 2013
@pixeltrix
Copy link
Contributor

@gzohari thanks for your contribution 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants