From 893035782d427b1fea3d1299417b507220752c3e Mon Sep 17 00:00:00 2001 From: schneems Date: Thu, 25 Aug 2016 20:27:10 -0500 Subject: [PATCH] Set unknown_asset_fallback false only new apps --- .../templates/config/initializers/new_framework_defaults.rb.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/railties/lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults.rb.tt b/railties/lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults.rb.tt index 4dbc3e771b..5ad18cc5ad 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults.rb.tt +++ b/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 %>