aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/cache.rb
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-01-19 19:35:24 -0200
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-01-19 19:35:24 -0200
commit760b8d37d4628a26642d4efa571eaf104880a0ea (patch)
tree8ebc83448381d1cfc5a20fc6bab7e03e64a6fdfd /activesupport/lib/active_support/cache.rb
parent239a97af552d5e83c36d90c430330f8f9036d345 (diff)
downloadrails-760b8d37d4628a26642d4efa571eaf104880a0ea.tar.gz
rails-760b8d37d4628a26642d4efa571eaf104880a0ea.tar.bz2
rails-760b8d37d4628a26642d4efa571eaf104880a0ea.zip
Remove warning: shadowing outer local variable
Diffstat (limited to 'activesupport/lib/active_support/cache.rb')
-rw-r--r--activesupport/lib/active_support/cache.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/cache.rb b/activesupport/lib/active_support/cache.rb
index 6a1f1fefb8..edbe697962 100644
--- a/activesupport/lib/active_support/cache.rb
+++ b/activesupport/lib/active_support/cache.rb
@@ -282,7 +282,7 @@ module ActiveSupport
if entry
get_entry_value(entry, name, options)
else
- save_block_result_to_cache(name, options) { |name| yield name }
+ save_block_result_to_cache(name, options) { |_name| yield _name }
end
else
read(name, options)