1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Avoid shadowed variable

This commit is contained in:
Matthew Draper 2017-07-02 02:18:22 +09:30
parent 87b3e226d6
commit 310918f6a1

View file

@ -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