Skip to content

Move implementation of before? and after? to DateAndTime::Calculations#32398

Merged
kamipo merged 1 commit intorails:masterfrom
bogdanvlviv:32185-dry-in-before-after-mehtods-implementation
Mar 31, 2018
Merged

Move implementation of before? and after? to DateAndTime::Calculations#32398
kamipo merged 1 commit intorails:masterfrom
bogdanvlviv:32185-dry-in-before-after-mehtods-implementation

Conversation

@bogdanvlviv
Copy link
Contributor

This prevents duplication of code.

Prevent duplication of tests by moving them to DateAndTimeBehavior.

Related to #32185.

…ations`

This prevents duplication of code.

Prevent duplication of tests by moving them to `DateAndTimeBehavior`.

Related to rails#32185.
@rails-bot
Copy link

r? @eileencodes

(@rails-bot has picked a reviewer for you, use r? to override)

@kamipo kamipo merged commit 87d9228 into rails:master Mar 31, 2018
@bogdanvlviv
Copy link
Contributor Author

Thank you @kamipo@.

@bogdanvlviv bogdanvlviv deleted the 32185-dry-in-before-after-mehtods-implementation branch April 1, 2018 02:35
muraaano added a commit to muraaano/rails that referenced this pull request Feb 5, 2019
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.

4 participants