Permalink
Browse files

only execute the nondigest task if needed

  • Loading branch information...
1 parent bbdb7f3 commit 20173e268228236c9006446c098507ea24138050 @mjtko mjtko committed Oct 4, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 actionpack/lib/sprockets/assets.rake
@@ -43,11 +43,11 @@ namespace :assets do
end
task :all do
- Rake::Task["assets:precompile:digest"].invoke
- ruby_rake_task "assets:precompile:nondigest"
+ Rake::Task["assets:precompile:primary"].invoke
+ ruby_rake_task "assets:precompile:nondigest" if Rails.application.config.assets.digest
end
- task :digest => ["assets:environment", "tmp:cache:clear"] do
+ task :primary => ["assets:environment", "tmp:cache:clear"] do
internal_precompile
end

0 comments on commit 20173e2

Please sign in to comment.