Fix the duplicated media attribute in stylesheet_link_tag

This commit is contained in:
Jean Boussier 2021-02-17 11:34:39 +01:00
parent d049839e1f
commit 1b70109aee
1 changed files with 2 additions and 2 deletions

View File

@ -170,8 +170,8 @@ module ActionView
"href" => href
}.merge!(options)
if apply_stylesheet_media_default && tag_options[:media].blank?
tag_options[:media] = "screen"
if apply_stylesheet_media_default && tag_options["media"].blank?
tag_options["media"] = "screen"
end
tag(:link, tag_options)