From 110ce85482a3f57f7776067f206408ecc36b9363 Mon Sep 17 00:00:00 2001 From: "Mark J. Titorenko" Date: Tue, 4 Oct 2011 23:27:53 +0100 Subject: added comment about why nondigest assets requires a reinvocation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: José Valim --- actionpack/lib/sprockets/assets.rake | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'actionpack/lib/sprockets/assets.rake') diff --git a/actionpack/lib/sprockets/assets.rake b/actionpack/lib/sprockets/assets.rake index 15cba0c475..e2536e4ac1 100644 --- a/actionpack/lib/sprockets/assets.rake +++ b/actionpack/lib/sprockets/assets.rake @@ -51,6 +51,11 @@ namespace :assets do task :all do Rake::Task["assets:precompile:primary"].invoke + # We need to reinvoke in order to run the secondary digestless + # asset compilation run - a fresh Sprockets environment is + # required in order to compile digestless assets as the + # environment has already cached the assets on the primary + # run. ruby_rake_task "assets:precompile:nondigest" if Rails.application.config.assets.digest end -- cgit v1.2.3