Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Inline the prefix assignment so it doesnt look so daft

  • Loading branch information...
commit f78cb5583f77952aa35e063a660a11aad5f8de7f 1 parent 66b445c
@dhh dhh authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  activesupport/lib/active_support/cache.rb
View
3  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.
Something went wrong with that request. Please try again.