From 589ff9680958faec98ec3d0ff710c6f635d6b5c1 Mon Sep 17 00:00:00 2001 From: Ray Baxter Date: Sat, 16 Jul 2011 23:27:26 -0700 Subject: [PATCH] clarify that DateTime objects are allowed arguments to distance_of_time_in_words --- actionpack/lib/action_view/helpers/date_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actionpack/lib/action_view/helpers/date_helper.rb b/actionpack/lib/action_view/helpers/date_helper.rb index 4776204d2f590..6ea0a9980bc2e 100644 --- a/actionpack/lib/action_view/helpers/date_helper.rb +++ b/actionpack/lib/action_view/helpers/date_helper.rb @@ -18,7 +18,7 @@ module Helpers # the select_month method would use simply "date" (which can be overwritten using :prefix) 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 include_seconds to true if you want more detailed approximations when distance < 1 min, 29 secs. # Distances are reported based on the following table: #