diff options
author | bogdanvlviv <bogdanvlviv@gmail.com> | 2018-03-31 18:16:32 +0300 |
---|---|---|
committer | bogdanvlviv <bogdanvlviv@gmail.com> | 2018-03-31 18:20:46 +0300 |
commit | 4e68b159d5696ca58c015a790ef3ceacb90b27c1 (patch) | |
tree | b08452ca48f359ed55c9e56b0f294966c8134b3a /activesupport/lib/active_support/core_ext/date | |
parent | b1a0ab179f23888eaadacd8292cbcec49ab06fdf (diff) | |
download | rails-4e68b159d5696ca58c015a790ef3ceacb90b27c1.tar.gz rails-4e68b159d5696ca58c015a790ef3ceacb90b27c1.tar.bz2 rails-4e68b159d5696ca58c015a790ef3ceacb90b27c1.zip |
Move implementation of `before?` and `after?` to `DateAndTime::Calculations`
This prevents duplication of code.
Prevent duplication of tests by moving them to `DateAndTimeBehavior`.
Related to #32185.
Diffstat (limited to 'activesupport/lib/active_support/core_ext/date')
-rw-r--r-- | activesupport/lib/active_support/core_ext/date/calculations.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/core_ext/date/calculations.rb b/activesupport/lib/active_support/core_ext/date/calculations.rb index e7be5c1376..1cd7acb05d 100644 --- a/activesupport/lib/active_support/core_ext/date/calculations.rb +++ b/activesupport/lib/active_support/core_ext/date/calculations.rb @@ -142,6 +142,4 @@ class Date end alias_method :compare_without_coercion, :<=> alias_method :<=>, :compare_with_coercion - alias_method :before?, :< - alias_method :after?, :> end |