diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2012-05-18 17:30:35 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-12-10 15:33:01 -0300 |
commit | 09a8b146ef9e038d6036a21fb4f80e15f9ee969a (patch) | |
tree | 4d9ccc8225360b8df1dc15e2e696dbc636e20330 /activerecord/lib | |
parent | cc9958026409d7a4b76af555c0240db4428a071b (diff) | |
download | rails-09a8b146ef9e038d6036a21fb4f80e15f9ee969a.tar.gz rails-09a8b146ef9e038d6036a21fb4f80e15f9ee969a.tar.bz2 rails-09a8b146ef9e038d6036a21fb4f80e15f9ee969a.zip |
Merge pull request #6376 from jgaskins/timestamp-microseconds
Increase numeric-timestamp precision to nanoseconds
Conflicts:
activesupport/lib/active_support/core_ext/time/conversions.rb
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/integration.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/integration.rb b/activerecord/lib/active_record/integration.rb index 2c42f4cca5..23c272ef12 100644 --- a/activerecord/lib/active_record/integration.rb +++ b/activerecord/lib/active_record/integration.rb @@ -39,7 +39,7 @@ module ActiveRecord when new_record? "#{self.class.model_name.cache_key}/new" when timestamp = self[:updated_at] - timestamp = timestamp.utc.to_s(:number) + timestamp = timestamp.utc.to_s(:nsec) "#{self.class.model_name.cache_key}/#{id}-#{timestamp}" else "#{self.class.model_name.cache_key}/#{id}" |