Skip to content

Commit

Permalink
added comment about why nondigest assets requires a reinvocation
Browse files Browse the repository at this point in the history
  • Loading branch information
mjtko committed Oct 4, 2011
1 parent 45cdb3e commit 871cbae
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions actionpack/lib/sprockets/assets.rake
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 871cbae

Please sign in to comment.