diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2017-05-20 09:30:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-20 09:30:37 +0200 |
commit | 055535fd1b265fba7528044235da665bd41374b9 (patch) | |
tree | e65b32b6f511b4c38c2b8f2d838c4912b496659c | |
parent | c01ea3e54984f8ecc698af4a701483b560d616aa (diff) | |
parent | edc0ffc38dc212aedeba3b92531552830569e322 (diff) | |
download | rails-055535fd1b265fba7528044235da665bd41374b9.tar.gz rails-055535fd1b265fba7528044235da665bd41374b9.tar.bz2 rails-055535fd1b265fba7528044235da665bd41374b9.zip |
Merge pull request #29153 from kamipo/fix_warning_assigned_but_unused_variable
Fix `warning: assigned but unused variable - timestamp`
-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 |