diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2018-04-01 06:52:38 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-01 06:52:38 +0900 |
commit | 87d9228d9d2225296f68795ef685f617a844f4df (patch) | |
tree | 2bdf3da757a5030b1c9f91c0c836ea4222501f07 /activesupport/lib/active_support/core_ext/time/calculations.rb | |
parent | 11b884e53455ae0eb95835b88e20c369b7c708dd (diff) | |
parent | 4e68b159d5696ca58c015a790ef3ceacb90b27c1 (diff) | |
download | rails-87d9228d9d2225296f68795ef685f617a844f4df.tar.gz rails-87d9228d9d2225296f68795ef685f617a844f4df.tar.bz2 rails-87d9228d9d2225296f68795ef685f617a844f4df.zip |
Merge pull request #32398 from bogdanvlviv/32185-dry-in-before-after-mehtods-implementation
Move implementation of `before?` and `after?` to `DateAndTime::Calculations`
Diffstat (limited to 'activesupport/lib/active_support/core_ext/time/calculations.rb')
-rw-r--r-- | activesupport/lib/active_support/core_ext/time/calculations.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/core_ext/time/calculations.rb b/activesupport/lib/active_support/core_ext/time/calculations.rb index 0507f9e652..120768dec5 100644 --- a/activesupport/lib/active_support/core_ext/time/calculations.rb +++ b/activesupport/lib/active_support/core_ext/time/calculations.rb @@ -302,8 +302,6 @@ class Time end alias_method :compare_without_coercion, :<=> alias_method :<=>, :compare_with_coercion - alias_method :before?, :< - alias_method :after?, :> # Layers additional behavior on Time#eql? so that ActiveSupport::TimeWithZone instances # can be eql? to an equivalent Time |