diff options
author | Nupur Jain <nupur.jain@risingsuntech.net> | 2012-02-21 16:50:35 +0530 |
---|---|---|
committer | Nupur Jain <nupur.jain@risingsuntech.net> | 2012-02-21 16:50:35 +0530 |
commit | f0baa1c301d3206dbca9ad35c5260d8070497302 (patch) | |
tree | 65df03ed31eecac6e191cc0c4ca51539e62f7c4f /activesupport/lib | |
parent | 007c41100b06db53630ce60048eaa625a9e955ee (diff) | |
download | rails-f0baa1c301d3206dbca9ad35c5260d8070497302.tar.gz rails-f0baa1c301d3206dbca9ad35c5260d8070497302.tar.bz2 rails-f0baa1c301d3206dbca9ad35c5260d8070497302.zip |
suggested changes.
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/cache.rb | 6 |
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 |