aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/integration.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/integration.rb b/activerecord/lib/active_record/integration.rb
index 36ce49d518..441237da1e 100644
--- a/activerecord/lib/active_record/integration.rb
+++ b/activerecord/lib/active_record/integration.rb
@@ -97,7 +97,7 @@ module ActiveRecord
# +false+ (which it is by default until Rails 6.0).
def cache_version
if cache_versioning && timestamp = try(:updated_at)
- updated_at.utc.to_s(:usec)
+ timestamp.utc.to_s(:usec)
end
end