Skip to content
Browse files

added comment about why nondigest assets requires a reinvocation

Signed-off-by: José Valim <>
  • Loading branch information...
1 parent 26a62a6 commit 110ce85482a3f57f7776067f206408ecc36b9363 @mjtko mjtko committed with josevalim Oct 4, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 actionpack/lib/sprockets/assets.rake
5 actionpack/lib/sprockets/assets.rake
@@ -51,6 +51,11 @@ namespace :assets do
task :all do
+ # 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

1 comment on commit 110ce85


Is there a reference document/discussion as to why this is needed? Don't non-digest asset files have the same contents as digest assets?

Please sign in to comment.
Something went wrong with that request. Please try again.