Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added comment about why nondigest assets requires a reinvocation

  • Loading branch information...
commit 871cbae6e4dc248c60554ffdf0f2d823792b2fe0 1 parent 45cdb3e
@mjtko authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 actionpack/lib/sprockets/assets.rake
View
5 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

0 comments on commit 871cbae

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