aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/core_ext/numeric/time.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/lib/core_ext/numeric/time.rb')
-rw-r--r--activesupport/lib/core_ext/numeric/time.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/core_ext/numeric/time.rb b/activesupport/lib/core_ext/numeric/time.rb
index 850dc9a783..ac5ecb8b70 100644
--- a/activesupport/lib/core_ext/numeric/time.rb
+++ b/activesupport/lib/core_ext/numeric/time.rb
@@ -38,7 +38,7 @@ module ActiveSupport
alias :year :years
# Reads best without arguments: 10.minutes.ago
- def ago(time = Time.now)
+ def ago(time = ::Time.now)
time - self
end
@@ -46,7 +46,7 @@ module ActiveSupport
alias :until :ago
# Reads best with argument: 10.minutes.since(time)
- def since(time = Time.now)
+ def since(time = ::Time.now)
time + self
end