diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-12-15 15:52:57 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-12-15 15:52:57 -0200 |
commit | dc3d3fb0b97d3be0501d66ba71a71611cf942b2b (patch) | |
tree | 3c31300fe5ba7da899d58a9529d18441d9db7054 | |
parent | e73fe1dd8c2740ae29e7a7f48d71a62b46e6b49d (diff) | |
download | rails-dc3d3fb0b97d3be0501d66ba71a71611cf942b2b.tar.gz rails-dc3d3fb0b97d3be0501d66ba71a71611cf942b2b.tar.bz2 rails-dc3d3fb0b97d3be0501d66ba71a71611cf942b2b.zip |
Remove warning of shadowing variable
-rw-r--r-- | actionpack/lib/action_controller/caching/fragments.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/caching/fragments.rb b/actionpack/lib/action_controller/caching/fragments.rb index c42384b741..b9ad51a9cf 100644 --- a/actionpack/lib/action_controller/caching/fragments.rb +++ b/actionpack/lib/action_controller/caching/fragments.rb @@ -62,7 +62,7 @@ module ActionController # with the specified +key+ value. The key is expanded using # ActiveSupport::Cache.expand_cache_key. def fragment_cache_key(key) - head = self.class.fragment_cache_keys.map { |key| instance_exec(&key) } + head = self.class.fragment_cache_keys.map { |k| instance_exec(&k) } tail = key.is_a?(Hash) ? url_for(key).split("://").last : key ActiveSupport::Cache.expand_cache_key([*head, *tail], :views) end |