From e61c32cb38dc3853a66ecb87550ba97be634c442 Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Tue, 3 Mar 2015 22:28:03 +0900 Subject: Move comment about microseconds [ci skip] The microseconds handling was already moved to `Quoting#quoted_date`. --- activerecord/lib/active_record/connection_adapters/abstract/quoting.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'activerecord/lib/active_record/connection_adapters/abstract') diff --git a/activerecord/lib/active_record/connection_adapters/abstract/quoting.rb b/activerecord/lib/active_record/connection_adapters/abstract/quoting.rb index 91c7298983..2c7409b2dc 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/quoting.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/quoting.rb @@ -123,6 +123,8 @@ module ActiveRecord 'f' end + # Quote date/time values for use in SQL input. Includes microseconds + # if the value is a Time responding to usec. def quoted_date(value) if value.acts_like?(:time) zone_conversion_method = ActiveRecord::Base.default_timezone == :utc ? :getutc : :getlocal -- cgit v1.2.3