aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/date/operators.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/lib/active_support/core_ext/date/operators.rb')
-rw-r--r--activesupport/lib/active_support/core_ext/date/operators.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/activesupport/lib/active_support/core_ext/date/operators.rb b/activesupport/lib/active_support/core_ext/date/operators.rb
deleted file mode 100644
index decf099624..0000000000
--- a/activesupport/lib/active_support/core_ext/date/operators.rb
+++ /dev/null
@@ -1,16 +0,0 @@
-require 'active_support/core_ext/date_and_time/with_duration'
-
-module ActiveSupport
- module DateOperators # :nodoc:
- include DateAndTime::WithDuration
-
- # Allow Date to be compared with Time by converting to DateTime and relying on the <=> from there.
- def <=>(other)
- if other.is_a?(Time)
- self.to_datetime <=> other
- else
- super
- end
- end
- end
-end