aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorNupur Jain <nupur.jain@risingsuntech.net>2012-02-21 16:50:35 +0530
committerNupur Jain <nupur.jain@risingsuntech.net>2012-02-21 16:50:35 +0530
commitf0baa1c301d3206dbca9ad35c5260d8070497302 (patch)
tree65df03ed31eecac6e191cc0c4ca51539e62f7c4f /activesupport
parent007c41100b06db53630ce60048eaa625a9e955ee (diff)
downloadrails-f0baa1c301d3206dbca9ad35c5260d8070497302.tar.gz
rails-f0baa1c301d3206dbca9ad35c5260d8070497302.tar.bz2
rails-f0baa1c301d3206dbca9ad35c5260d8070497302.zip
suggested changes.
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/cache.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/activesupport/lib/active_support/cache.rb b/activesupport/lib/active_support/cache.rb
index 26e737e917..d7408eff9f 100644
--- a/activesupport/lib/active_support/cache.rb
+++ b/activesupport/lib/active_support/cache.rb
@@ -382,11 +382,7 @@ module ActiveSupport
options = merged_options(options)
instrument(:exist?, name) do |payload|
entry = read_entry(namespaced_key(name, options), options)
- if entry && !entry.expired?
- true
- else
- false
- end
+ entry && !entry.expired?
end
end