aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorMark J. Titorenko <mark@titorenko.net>2011-10-04 23:22:51 +0100
committerJosé Valim <jose.valim@gmail.com>2011-10-05 01:25:05 +0200
commit42eda8f8a19e30e9d5de4e8963df1ee6ed8ce5a1 (patch)
treea158a3ca1c6b7c43322c2a403623823099265971 /actionpack/lib
parentee51cc30ff93201c9e76e7fcfa2d298e4e1568c3 (diff)
downloadrails-42eda8f8a19e30e9d5de4e8963df1ee6ed8ce5a1.tar.gz
rails-42eda8f8a19e30e9d5de4e8963df1ee6ed8ce5a1.tar.bz2
rails-42eda8f8a19e30e9d5de4e8963df1ee6ed8ce5a1.zip
only execute the nondigest task if needed
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/sprockets/assets.rake6
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/sprockets/assets.rake b/actionpack/lib/sprockets/assets.rake
index 18fe9f05a0..68d9a9ca31 100644
--- a/actionpack/lib/sprockets/assets.rake
+++ b/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