mirror of https://github.com/rails/rails
Fix the duplicated media attribute in stylesheet_link_tag
This commit is contained in:
parent
d049839e1f
commit
1b70109aee
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue