aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2017-07-02 02:18:22 +0930
committerMatthew Draper <matthew@trebex.net>2017-07-02 02:18:22 +0930
commit310918f6a194bf5752fe1025930881756f5d8a8e (patch)
treece7a0ee6aaa1022f0ef22b32556902b1c08e792b /actionview
parent87b3e226d65ac1ed371620bfdcd2f950c87cfece (diff)
downloadrails-310918f6a194bf5752fe1025930881756f5d8a8e.tar.gz
rails-310918f6a194bf5752fe1025930881756f5d8a8e.tar.bz2
rails-310918f6a194bf5752fe1025930881756f5d8a8e.zip
Avoid shadowed variable
Diffstat (limited to 'actionview')
-rw-r--r--actionview/lib/action_view/helpers/asset_tag_helper.rb4
1 files changed, 2 insertions, 2 deletions
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