From f3554777b2433d9de6b17c277fde071592d6a10d Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Mon, 21 Nov 2011 14:01:53 -0800 Subject: cache entry: options[:compressed] is a regular flag, no need for !! --- activesupport/lib/active_support/cache.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/lib') 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 -- cgit v1.2.3