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 unnecessary monkey patching #48

Merged
merged 1 commit into from
Oct 9, 2015

Conversation

pabloh
Copy link
Contributor

@pabloh pabloh commented May 30, 2015

This kind of monkey patching isn't really necessary since Time#<=> is smart enough to try inverting the operands if the argument it receives is not an instance of Time.

Also the alias chain can be a source of headaches if you want to use it simultaneously with the new method Module#prepend: rails/rails#19878

@pabloh pabloh force-pushed the remove_time_money_patch branch from e52323f to 4d8782a Compare May 30, 2015 20:01
hsbt added a commit that referenced this pull request Oct 9, 2015
Remove unnecessary monkey patching
@hsbt hsbt merged commit d05c0ab into ruby:master Oct 9, 2015
@hsbt
Copy link
Member

hsbt commented Oct 9, 2015

It seems good because travis-ci is green.

@pabloh pabloh deleted the remove_time_money_patch branch February 14, 2016 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants