From 5000e4e3fdcdb14ddbccedee0ccbf0700cc66aba Mon Sep 17 00:00:00 2001 From: Ben Turner Date: Fri, 21 Jul 2023 13:07:56 +1000 Subject: [PATCH] Update warning message to use correct location When the `assets.prefix` rails configuration value has been changed, this will result in the manifest file being written into a different directory underneath `/public` By using this dynamic value in the warning message, it should provide the correct path to the manifest file --- lib/propshaft/railties/assets.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/propshaft/railties/assets.rake b/lib/propshaft/railties/assets.rake index 977000d7..6af2f04f 100644 --- a/lib/propshaft/railties/assets.rake +++ b/lib/propshaft/railties/assets.rake @@ -4,7 +4,7 @@ namespace :assets do Rails.application.assets.processor.process if Rails.env.development? puts "Warning: You are precompiling assets in development. Rails will not " \ - "serve any changed assets until you delete public/assets/.manifest.json" + "serve any changed assets until you delete public#{Rails.application.config.assets.prefix}/.manifest.json" end end