From 900dbc54f17500e14e481eab2ebf88acfc5448aa Mon Sep 17 00:00:00 2001 From: Jamie Gaskins Date: Fri, 18 May 2012 18:42:35 +0800 Subject: Increase `AR#cache_key` precision to nanoseconds --- activesupport/lib/active_support/core_ext/time/conversions.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activesupport/lib/active_support/core_ext') diff --git a/activesupport/lib/active_support/core_ext/time/conversions.rb b/activesupport/lib/active_support/core_ext/time/conversions.rb index 4f852fd780..10ca26acf2 100644 --- a/activesupport/lib/active_support/core_ext/time/conversions.rb +++ b/activesupport/lib/active_support/core_ext/time/conversions.rb @@ -5,6 +5,7 @@ class Time DATE_FORMATS = { :db => '%Y-%m-%d %H:%M:%S', :number => '%Y%m%d%H%M%S', + :nsec => '%Y%m%d%H%M%S%9N', :time => '%H:%M', :short => '%d %b %H:%M', :long => '%B %d, %Y %H:%M', -- cgit v1.2.3