Permalink
Browse files

clarify that DateTime objects are allowed arguments

to distance_of_time_in_words
  • Loading branch information...
1 parent 5c7cb8a commit 9831d7bab1e3f532e35d63e5d7eacaebc6975124 @raybaxter raybaxter committed with fxn Jul 17, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/helpers/date_helper.rb
@@ -18,7 +18,7 @@ module Helpers
# 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:
#

0 comments on commit 9831d7b

Please sign in to comment.