From 80f2eeb138c4a7901b7b015a6f56445902a9f1ab Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Wed, 28 Dec 2011 16:55:41 -0800 Subject: Revert "Merge pull request #4196 from gazay/3-2-stable-marshalling" This reverts commit df3701872d6c97ff49943aea30761b47e60fa9fe, reversing changes made to a0fd9fb01730af12d66a27b5665cc010bd3b90b4. --- activesupport/lib/active_support/cache.rb | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'activesupport/lib/active_support') diff --git a/activesupport/lib/active_support/cache.rb b/activesupport/lib/active_support/cache.rb index 6ba0a600b1..7d032ca984 100644 --- a/activesupport/lib/active_support/cache.rb +++ b/activesupport/lib/active_support/cache.rb @@ -578,17 +578,7 @@ module ActiveSupport # it is marshalled and eventually compressed. Both operations yield # strings. if @value - # In rails 3.1 and earlier values in entries did not marshaled without - # options[:compress] and if it's Numeric. - # But after commit a263f377978fc07515b42808ebc1f7894fafaa3a - # all values in entries are marshalled. And after that code below expects - # that all values in entries will be marshaled (and will be strings). - # So here we need a check for old ones. - begin - Marshal.load(compressed? ? Zlib::Inflate.inflate(@value) : @value) - rescue - compressed? ? Zlib::Inflate.inflate(@value) : @value - end + Marshal.load(compressed? ? Zlib::Inflate.inflate(@value) : @value) end end -- cgit v1.2.3