diff options
author | Xavier Noria <fxn@hashref.com> | 2011-11-21 14:01:53 -0800 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-11-21 14:01:53 -0800 |
commit | f3554777b2433d9de6b17c277fde071592d6a10d (patch) | |
tree | 5c2055387b3e6d2c39cd35bdae1d1506cd2bd9c2 /activesupport/lib/active_support/cache.rb | |
parent | 91678a5b29bca29aae4a987615f2503067032802 (diff) | |
download | rails-f3554777b2433d9de6b17c277fde071592d6a10d.tar.gz rails-f3554777b2433d9de6b17c277fde071592d6a10d.tar.bz2 rails-f3554777b2433d9de6b17c277fde071592d6a10d.zip |
cache entry: options[:compressed] is a regular flag, no need for !!
Diffstat (limited to 'activesupport/lib/active_support/cache.rb')
-rw-r--r-- | activesupport/lib/active_support/cache.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/cache.rb b/activesupport/lib/active_support/cache.rb index 97583c9bd9..2bf24558a6 100644 --- a/activesupport/lib/active_support/cache.rb +++ b/activesupport/lib/active_support/cache.rb @@ -542,7 +542,7 @@ module ActiveSupport entry = new(nil) entry.instance_variable_set(:@value, raw_value) entry.instance_variable_set(:@created_at, created_at.to_f) - entry.instance_variable_set(:@compressed, !!options[:compressed]) + entry.instance_variable_set(:@compressed, options[:compressed]) entry.instance_variable_set(:@expires_in, options[:expires_in]) entry end |