diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2017-05-20 16:43:31 +0200 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2017-05-20 16:43:31 +0200 |
commit | dccfcbfdafb2bd77a7d130cb69e0c3725d7f7c6d (patch) | |
tree | fe1cb2665680d9d7d60bef459b1113c3a887dd33 | |
parent | 1c2dd9cb66ceda3c8febfed4f3f2cb39ae92bd4a (diff) | |
download | rails-dccfcbfdafb2bd77a7d130cb69e0c3725d7f7c6d.tar.gz rails-dccfcbfdafb2bd77a7d130cb69e0c3725d7f7c6d.tar.bz2 rails-dccfcbfdafb2bd77a7d130cb69e0c3725d7f7c6d.zip |
Remove unused mismatch payload attribute
-rw-r--r-- | activesupport/lib/active_support/cache.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/activesupport/lib/active_support/cache.rb b/activesupport/lib/active_support/cache.rb index cea603e1b3..44f80dd379 100644 --- a/activesupport/lib/active_support/cache.rb +++ b/activesupport/lib/active_support/cache.rb @@ -331,11 +331,7 @@ module ActiveSupport payload[:hit] = false if payload nil elsif entry.mismatched?(version) - if payload - payload[:hit] = false - payload[:mismatch] = "#{entry.version} != #{version}" - end - + payload[:hit] = false if payload nil else payload[:hit] = true if payload |