diff options
author | Matthew Draper <matthew@trebex.net> | 2017-07-02 02:18:22 +0930 |
---|---|---|
committer | Matthew Draper <matthew@trebex.net> | 2017-07-02 02:18:22 +0930 |
commit | 310918f6a194bf5752fe1025930881756f5d8a8e (patch) | |
tree | ce7a0ee6aaa1022f0ef22b32556902b1c08e792b /actionview/lib | |
parent | 87b3e226d65ac1ed371620bfdcd2f950c87cfece (diff) | |
download | rails-310918f6a194bf5752fe1025930881756f5d8a8e.tar.gz rails-310918f6a194bf5752fe1025930881756f5d8a8e.tar.bz2 rails-310918f6a194bf5752fe1025930881756f5d8a8e.zip |
Avoid shadowed variable
Diffstat (limited to 'actionview/lib')
-rw-r--r-- | actionview/lib/action_view/helpers/asset_tag_helper.rb | 4 |
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 |