diff options
author | Eileen M. Uchitelle <eileencodes@users.noreply.github.com> | 2018-01-31 08:11:15 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-31 08:11:15 -0500 |
commit | 8a05dff9f33195e51a4fd4d8168db8b0d7ab19cb (patch) | |
tree | 55e56017a5b53a3c642cdcb7074b1da60ee32268 | |
parent | 2ea5b8f0578b2ec35881c8b01e6e18aed7e38edc (diff) | |
parent | 689da12082f5223388a96c1324f029e94188d70b (diff) | |
download | rails-8a05dff9f33195e51a4fd4d8168db8b0d7ab19cb.tar.gz rails-8a05dff9f33195e51a4fd4d8168db8b0d7ab19cb.tar.bz2 rails-8a05dff9f33195e51a4fd4d8168db8b0d7ab19cb.zip |
Merge pull request #31838 from bogdanvlviv/fix-value-of-as-attribute-for-link-type-preload
Fix `as` attribute value for preload link
-rw-r--r-- | actionview/lib/action_view/helpers/asset_tag_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/helpers/asset_tag_helper.rb b/actionview/lib/action_view/helpers/asset_tag_helper.rb index 16def9837e..76b1c3fb6e 100644 --- a/actionview/lib/action_view/helpers/asset_tag_helper.rb +++ b/actionview/lib/action_view/helpers/asset_tag_helper.rb @@ -133,7 +133,7 @@ module ActionView sources_tags = sources.uniq.map { |source| href = path_to_stylesheet(source, path_options) - early_hints_links << "<#{href}>; rel=preload; as=stylesheet" + early_hints_links << "<#{href}>; rel=preload; as=style" tag_options = { "rel" => "stylesheet", "media" => "screen", |