diff options
author | Jamie Gaskins <jgaskins@gmail.com> | 2012-05-18 18:42:35 +0800 |
---|---|---|
committer | Jamie Gaskins <jgaskins@gmail.com> | 2012-05-19 08:20:08 +0800 |
commit | 900dbc54f17500e14e481eab2ebf88acfc5448aa (patch) | |
tree | d34cc01afa34e5782eef3cdbcfee6fdc77c827e4 /activesupport/lib/active_support | |
parent | 88949f8ac1759d07fe8502f863dac20f509163c3 (diff) | |
download | rails-900dbc54f17500e14e481eab2ebf88acfc5448aa.tar.gz rails-900dbc54f17500e14e481eab2ebf88acfc5448aa.tar.bz2 rails-900dbc54f17500e14e481eab2ebf88acfc5448aa.zip |
Increase `AR#cache_key` precision to nanoseconds
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r-- | activesupport/lib/active_support/core_ext/time/conversions.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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', |