aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/sprockets/assets.rake
diff options
context:
space:
mode:
authorMark J. Titorenko <mark@titorenko.net>2011-10-04 23:27:53 +0100
committerJosé Valim <jose.valim@gmail.com>2011-10-05 01:25:47 +0200
commit110ce85482a3f57f7776067f206408ecc36b9363 (patch)
treec78f245800c5afd8a930a008eed98f3562caf32b /actionpack/lib/sprockets/assets.rake
parent26a62a6552b19332f23cc4af87d74ae3ee4aa123 (diff)
downloadrails-110ce85482a3f57f7776067f206408ecc36b9363.tar.gz
rails-110ce85482a3f57f7776067f206408ecc36b9363.tar.bz2
rails-110ce85482a3f57f7776067f206408ecc36b9363.zip
added comment about why nondigest assets requires a reinvocation
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'actionpack/lib/sprockets/assets.rake')
-rw-r--r--actionpack/lib/sprockets/assets.rake5
1 files changed, 5 insertions, 0 deletions
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