Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure that ActionView::Helpers::AssetTagHelper.preload_links_header is nil without Rails 6.1 defaults #41052

Merged

Commits on Jan 8, 2021

  1. Make sure that `ActionView::Helpers::AssetTagHelper.preload_links_hea…

    …der` `nil` without Rails 6.1 defaults
    
    In rails#39939 we automatically set `Link` header for each stylesheet and script.
    In rails#40882 we  added `config.action_view.preload_links_header` option
    to configure whether `stylesheet_link_tag` and `javascript_include_tag`
    should set automatically `Link` header.
    
    This commit adds test to make sure that it is disabled by default
    for updated apps that haven't adopted new '6.1' defaults.
    Also, added changes to Configuring guide
     - Mentioned this option in "Results of `config.load_defaults`" section
     - Mentioned this option in "Baseline defaults:" section (see ff88113)
    bogdanvlviv committed Jan 8, 2021
    Configuration menu
    Copy the full SHA
    9a91e5c View commit details
    Browse the repository at this point in the history