Permalink
Browse files

Inline the prefix assignment so it doesnt look so daft

  • Loading branch information...
dhh committed Jan 27, 2012
1 parent 83dbef6 commit b495a8dba8f479dfd43985936bc33369465bdbaf
Showing with 1 addition and 2 deletions.
  1. +1 −2 activesupport/lib/active_support/cache.rb
@@ -77,8 +77,7 @@ def lookup_store(*store_option)
def expand_cache_key(key, namespace = nil)
expanded_cache_key = namespace ? "#{namespace}/" : ""
- prefix = ENV["RAILS_CACHE_ID"] || ENV["RAILS_APP_VERSION"]
- if prefix
+ if prefix = ENV["RAILS_CACHE_ID"] || ENV["RAILS_APP_VERSION"]
expanded_cache_key << "#{prefix}/"
end

0 comments on commit b495a8d

Please sign in to comment.