From fc16af47ba941ce8c0125653fa3bf399d68a586c Mon Sep 17 00:00:00 2001 From: schneems Date: Tue, 23 Aug 2016 12:20:36 -0500 Subject: Default assets.unknown_asset_fallback to false --- .../generators/rails/app/templates/config/initializers/assets.rb.tt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'railties') diff --git a/railties/lib/rails/generators/rails/app/templates/config/initializers/assets.rb.tt b/railties/lib/rails/generators/rails/app/templates/config/initializers/assets.rb.tt index 2318cf59ff..2393fecc12 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/initializers/assets.rb.tt +++ b/railties/lib/rails/generators/rails/app/templates/config/initializers/assets.rb.tt @@ -6,6 +6,10 @@ Rails.application.config.assets.version = '1.0' # Add additional assets to the asset load path # Rails.application.config.assets.paths << Emoji.images_path +# 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 + # Precompile additional assets. # application.js, application.css, and all non-JS/CSS in the app/assets # folder are already added. -- cgit v1.2.3