aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/sprockets
diff options
context:
space:
mode:
authorTerence Lee <hone02@gmail.com>2011-09-22 12:03:59 -0500
committerJosé Valim <jose.valim@gmail.com>2011-09-22 20:54:02 +0200
commit9d46823b5d00e78c6ffaaae731a9a7acf6bb2b14 (patch)
tree1bd2fe641568791b6b468bec58169929556e8669 /actionpack/lib/sprockets
parent1de89e5e077e2e0948e78af500e78db4daaa03cc (diff)
downloadrails-9d46823b5d00e78c6ffaaae731a9a7acf6bb2b14.tar.gz
rails-9d46823b5d00e78c6ffaaae731a9a7acf6bb2b14.tar.bz2
rails-9d46823b5d00e78c6ffaaae731a9a7acf6bb2b14.zip
set env to let rails know we're precompiling
Diffstat (limited to 'actionpack/lib/sprockets')
-rw-r--r--actionpack/lib/sprockets/assets.rake3
1 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/lib/sprockets/assets.rake b/actionpack/lib/sprockets/assets.rake
index e38ac6b489..7241671db0 100644
--- a/actionpack/lib/sprockets/assets.rake
+++ b/actionpack/lib/sprockets/assets.rake
@@ -1,6 +1,9 @@
namespace :assets do
desc "Compile all the assets named in config.assets.precompile"
task :precompile do
+ # let rails know we're precompiling assets
+ ENV["RAILS_ASSETS_PRECOMPILE"] = 'true'
+
# We need to do this dance because RAILS_GROUPS is used
# too early in the boot process and changing here is already too late.
if ENV["RAILS_GROUPS"].to_s.empty? || ENV["RAILS_ENV"].to_s.empty?