From 760b8d37d4628a26642d4efa571eaf104880a0ea Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Sat, 19 Jan 2013 19:35:24 -0200 Subject: Remove warning: shadowing outer local variable --- activesupport/lib/active_support/cache.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport') 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) -- cgit v1.2.3