Permalink
Browse files

Inline the prefix assignment so it doesnt look so daft

  • Loading branch information...
1 parent 66b445c commit f78cb5583f77952aa35e063a660a11aad5f8de7f @dhh dhh committed Jan 27, 2012
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 f78cb55

Please sign in to comment.