Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Inline the prefix assignment so it doesnt look so daft

  • Loading branch information...
commit b495a8dba8f479dfd43985936bc33369465bdbaf 1 parent 83dbef6
@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
Please sign in to comment.
Something went wrong with that request. Please try again.