aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2009-02-05 21:00:44 +0100
committerDavid Heinemeier Hansson <david@loudthinking.com>2009-02-05 21:00:44 +0100
commit9b4aa9bcd9cb03f689eed374e870dd5a46e4a661 (patch)
tree2db409c7d6fa5cd4467e6055f68deb95ddb46efe /activesupport/lib
parentbe1dbf321aba03c2e9bec423f753308e9bba3ef5 (diff)
downloadrails-9b4aa9bcd9cb03f689eed374e870dd5a46e4a661.tar.gz
rails-9b4aa9bcd9cb03f689eed374e870dd5a46e4a661.tar.bz2
rails-9b4aa9bcd9cb03f689eed374e870dd5a46e4a661.zip
Revert "created unit tests and fixed bug that failed tests"
This reverts commit be1dbf321aba03c2e9bec423f753308e9bba3ef5.
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/cache.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/cache.rb b/activesupport/lib/active_support/cache.rb
index 0f848c5933..83174d3a85 100644
--- a/activesupport/lib/active_support/cache.rb
+++ b/activesupport/lib/active_support/cache.rb
@@ -138,7 +138,7 @@ module ActiveSupport
# cache.fetch("foo") # => nil
def fetch(key, options = {})
@logger_off = true
- if !options[:force] && ((value = read(key, options)) || exist?(key, options))
+ if !options[:force] && value = read(key, options)
@logger_off = false
log("hit", key, options)
value