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:
parent
87b3e226d6
commit
310918f6a1
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue