From edc0ffc38dc212aedeba3b92531552830569e322 Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Sat, 20 May 2017 06:59:17 +0900 Subject: Fix `warning: assigned but unused variable - timestamp` --- activerecord/lib/active_record/integration.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord') 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 -- cgit v1.2.3