Skip to content
This repository
Browse code

clarify that DateTime objects are allowed arguments

to distance_of_time_in_words
  • Loading branch information...
commit 589ff9680958faec98ec3d0ff710c6f635d6b5c1 1 parent 4ada0a5
Ray Baxter authored July 16, 2011
2  actionpack/lib/action_view/helpers/date_helper.rb
@@ -18,7 +18,7 @@ module Helpers
18 18
     #   the <tt>select_month</tt> method would use simply "date" (which can be overwritten using <tt>:prefix</tt>) instead
19 19
     #   of "date[month]".
20 20
     module DateHelper
21  
-      # Reports the approximate distance in time between two Time or Date objects or integers as seconds.
  21
+      # Reports the approximate distance in time between two Time, Date or DateTime objects or integers as seconds.
22 22
       # Set <tt>include_seconds</tt> to true if you want more detailed approximations when distance < 1 min, 29 secs.
23 23
       # Distances are reported based on the following table:
24 24
       #

0 notes on commit 589ff96

Please sign in to comment.
Something went wrong with that request. Please try again.