aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/lib')
-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)