From 310918f6a194bf5752fe1025930881756f5d8a8e Mon Sep 17 00:00:00 2001 From: Matthew Draper Date: Sun, 2 Jul 2017 02:18:22 +0930 Subject: Avoid shadowed variable --- actionview/lib/action_view/helpers/asset_tag_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionview/lib/action_view') diff --git a/actionview/lib/action_view/helpers/asset_tag_helper.rb b/actionview/lib/action_view/helpers/asset_tag_helper.rb index 3a854e82d3..a8d37013f9 100644 --- a/actionview/lib/action_view/helpers/asset_tag_helper.rb +++ b/actionview/lib/action_view/helpers/asset_tag_helper.rb @@ -245,8 +245,8 @@ module ActionView end if options[:srcset] && !options[:srcset].is_a?(String) - options[:srcset] = options[:srcset].map do |src, size| - src_path = path_to_image(src, skip_pipeline: skip_pipeline) + options[:srcset] = options[:srcset].map do |src_path, size| + src_path = path_to_image(src_path, skip_pipeline: skip_pipeline) "#{src_path} #{size}" end.join(", ") end -- cgit v1.2.3