Set unknown_asset_fallback false only new apps
This commit is contained in:
parent
58bd1124cf
commit
893035782d
2
railties/lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults.rb.tt
2
railties/lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults.rb.tt
@ -35,4 +35,4 @@ Rails.application.config.ssl_options = { hsts: { subdomains: true } }
|
||||
|
||||
# Unknown asset fallback will return the path passed in when the given
|
||||
# asset is not present in the asset pipeline.
|
||||
Rails.application.config.assets.unknown_asset_fallback = false
|
||||
Rails.application.config.assets.unknown_asset_fallback = <%= options[:update] ? true : false %>
|
||||
|
Loading…
Reference in New Issue
Block a user