Browse files

only execute the nondigest task if needed

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
1 parent ee51cc3 commit 42eda8f8a19e30e9d5de4e8963df1ee6ed8ce5a1 @mjtko mjtko committed with josevalim Oct 4, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 actionpack/lib/sprockets/assets.rake
View
6 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 42eda8f

Please sign in to comment.