diff options
author | Ray Baxter <ray.baxter@gmail.com> | 2011-07-16 23:27:26 -0700 |
---|---|---|
committer | Ray Baxter <ray.baxter@gmail.com> | 2011-07-16 23:27:26 -0700 |
commit | 589ff9680958faec98ec3d0ff710c6f635d6b5c1 (patch) | |
tree | a94e316c536413587bc8c5dfa65ff15ea30c33ee /actionpack/lib/action_view/helpers | |
parent | 4ada0a58ae324c029132c7280eec1dd996a79882 (diff) | |
download | rails-589ff9680958faec98ec3d0ff710c6f635d6b5c1.tar.gz rails-589ff9680958faec98ec3d0ff710c6f635d6b5c1.tar.bz2 rails-589ff9680958faec98ec3d0ff710c6f635d6b5c1.zip |
clarify that DateTime objects are allowed arguments
to distance_of_time_in_words
Diffstat (limited to 'actionpack/lib/action_view/helpers')
-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 4776204d2f..6ea0a9980b 100644 --- a/actionpack/lib/action_view/helpers/date_helper.rb +++ b/actionpack/lib/action_view/helpers/date_helper.rb @@ -18,7 +18,7 @@ module ActionView # the <tt>select_month</tt> method would use simply "date" (which can be overwritten using <tt>:prefix</tt>) instead # of "date[month]". module DateHelper - # Reports the approximate distance in time between two Time or Date objects or integers as seconds. + # Reports the approximate distance in time between two Time, Date or DateTime objects or integers as seconds. # Set <tt>include_seconds</tt> to true if you want more detailed approximations when distance < 1 min, 29 secs. # Distances are reported based on the following table: # |