aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/date_and_time
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/lib/active_support/core_ext/date_and_time')
-rw-r--r--activesupport/lib/active_support/core_ext/date_and_time/with_duration.rb23
1 files changed, 0 insertions, 23 deletions
diff --git a/activesupport/lib/active_support/core_ext/date_and_time/with_duration.rb b/activesupport/lib/active_support/core_ext/date_and_time/with_duration.rb
deleted file mode 100644
index 4a6c4013d5..0000000000
--- a/activesupport/lib/active_support/core_ext/date_and_time/with_duration.rb
+++ /dev/null
@@ -1,23 +0,0 @@
-require 'active_support/duration'
-
-module ActiveSupport
- module DateAndTime
- module WithDuration #:nodoc:
- def +(other) #:nodoc:
- if ActiveSupport::Duration === other
- other.since(self)
- else
- super
- end
- end
-
- def -(other) #:nodoc:
- if ActiveSupport::Duration === other
- self + (-other)
- else
- super
- end
- end
- end
- end
-end