Created
May 14, 2011 02:35
-
-
Save AquaGeek/971840 to your computer and use it in GitHub Desktop.
Rails Lighthouse ticket #6707
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From b9460e17454e00ae688e7a80300cac80930bc509 Mon Sep 17 00:00:00 2001 | |
From: Adam Holt <Ads.noob@gmail.com> | |
Date: Sun, 17 Apr 2011 13:36:32 +0100 | |
Subject: [PATCH] rake assets:compile should fail gracefully when asset pipelining not enabled | |
--- | |
railties/lib/rails/tasks/assets.rake | 1 + | |
1 files changed, 1 insertions(+), 0 deletions(-) | |
diff --git a/railties/lib/rails/tasks/assets.rake b/railties/lib/rails/tasks/assets.rake | |
index 396ce72..4c0d8b0 100644 | |
--- a/railties/lib/rails/tasks/assets.rake | |
+++ b/railties/lib/rails/tasks/assets.rake | |
@@ -1,5 +1,6 @@ | |
namespace :assets do | |
task :compile => :environment do | |
+ raise "Asset Pipelining is not enabled" unless Rails.application.config.assets.enabled | |
assets = Rails.application.config.assets.precompile | |
Rails.application.assets.precompile(*assets) | |
end | |
-- | |
1.7.3.4 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment