diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-05-20 06:59:17 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2017-05-20 06:59:17 +0900 |
commit | edc0ffc38dc212aedeba3b92531552830569e322 (patch) | |
tree | e65b32b6f511b4c38c2b8f2d838c4912b496659c /activerecord/lib/active_record | |
parent | c01ea3e54984f8ecc698af4a701483b560d616aa (diff) | |
download | rails-edc0ffc38dc212aedeba3b92531552830569e322.tar.gz rails-edc0ffc38dc212aedeba3b92531552830569e322.tar.bz2 rails-edc0ffc38dc212aedeba3b92531552830569e322.zip |
Fix `warning: assigned but unused variable - timestamp`
Diffstat (limited to 'activerecord/lib/active_record')
-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 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 |