diff options
author | Matt Duncan <mrduncan@gmail.com> | 2011-04-15 20:08:11 -0400 |
---|---|---|
committer | Matt Duncan <mrduncan@gmail.com> | 2011-04-15 20:08:11 -0400 |
commit | 6ddd4a3d954cd81f96c747f515406be50041431a (patch) | |
tree | 67c99754f4783caadcba73a683c309d66e16f57c /actionpack/lib/action_view | |
parent | 8ac365f47626fd4d9569cf9c378c3a8f4f60eb58 (diff) | |
download | rails-6ddd4a3d954cd81f96c747f515406be50041431a.tar.gz rails-6ddd4a3d954cd81f96c747f515406be50041431a.tar.bz2 rails-6ddd4a3d954cd81f96c747f515406be50041431a.zip |
Days are never approximated using 'about'
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r-- | actionpack/lib/action_view/helpers/date_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/date_helper.rb b/actionpack/lib/action_view/helpers/date_helper.rb index 4c65ebc1f3..3c0c7c319c 100644 --- a/actionpack/lib/action_view/helpers/date_helper.rb +++ b/actionpack/lib/action_view/helpers/date_helper.rb @@ -51,7 +51,7 @@ module ActionView # distance_of_time_in_words(from_time, from_time + 15.seconds) # => less than a minute # distance_of_time_in_words(from_time, from_time + 15.seconds, true) # => less than 20 seconds # distance_of_time_in_words(from_time, 3.years.from_now) # => about 3 years - # distance_of_time_in_words(from_time, from_time + 60.hours) # => about 3 days + # distance_of_time_in_words(from_time, from_time + 60.hours) # => 3 days # distance_of_time_in_words(from_time, from_time + 45.seconds, true) # => less than a minute # distance_of_time_in_words(from_time, from_time - 45.seconds, true) # => less than a minute # distance_of_time_in_words(from_time, 76.seconds.from_now) # => 1 minute |