Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove warning: shadowing outer local variable

  • Loading branch information...
commit 760b8d37d4628a26642d4efa571eaf104880a0ea 1 parent 239a97a
@carlosantoniodasilva carlosantoniodasilva authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activesupport/lib/active_support/cache.rb
View
2  activesupport/lib/active_support/cache.rb
@@ -282,7 +282,7 @@ def fetch(name, options = nil)
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)
Please sign in to comment.
Something went wrong with that request. Please try again.