Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
only execute the nondigest task if needed
  • Loading branch information
mjtko committed Oct 4, 2011
1 parent bbdb7f3 commit 20173e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions actionpack/lib/sprockets/assets.rake
Expand Up @@ -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

Expand Down

0 comments on commit 20173e2

Please sign in to comment.