aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/numeric/time.rb
diff options
context:
space:
mode:
authorAlexey Gaziev <alex.gaziev@gmail.com>2012-05-07 22:40:59 +0400
committerAlexey Gaziev <alex.gaziev@gmail.com>2012-05-07 23:56:27 +0400
commitd785b292a8c921989f606696dff3765836d1fb44 (patch)
tree6e63d6ee40bbb44ded56dea255cb4d8c8d1596e5 /activesupport/lib/active_support/core_ext/numeric/time.rb
parent8b67a022ec8754e5dab8df2a8bbec37df61a5fc2 (diff)
downloadrails-d785b292a8c921989f606696dff3765836d1fb44.tar.gz
rails-d785b292a8c921989f606696dff3765836d1fb44.tar.bz2
rails-d785b292a8c921989f606696dff3765836d1fb44.zip
Changes for numeric api for Time because Time.current works different
Diffstat (limited to 'activesupport/lib/active_support/core_ext/numeric/time.rb')
-rw-r--r--activesupport/lib/active_support/core_ext/numeric/time.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/core_ext/numeric/time.rb b/activesupport/lib/active_support/core_ext/numeric/time.rb
index 822f766af7..2bf3d1f278 100644
--- a/activesupport/lib/active_support/core_ext/numeric/time.rb
+++ b/activesupport/lib/active_support/core_ext/numeric/time.rb
@@ -8,13 +8,13 @@ class Numeric
# These methods use Time#advance for precise date calculations when using from_now, ago, etc.
# as well as adding or subtracting their results from a Time object. For example:
#
- # # equivalent to Time.now.advance(:months => 1)
+ # # equivalent to Time.current.advance(:months => 1)
# 1.month.from_now
#
- # # equivalent to Time.now.advance(:years => 2)
+ # # equivalent to Time.current.advance(:years => 2)
# 2.years.from_now
#
- # # equivalent to Time.now.advance(:months => 4, :years => 5)
+ # # equivalent to Time.current.advance(:months => 4, :years => 5)
# (4.months + 5.years).from_now
#
# While these methods provide precise calculation when used as in the examples above, care