aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2011-08-09 20:40:52 -0300
committerSantiago Pastorino <santiago@wyeworks.com>2011-08-09 20:40:52 -0300
commitd9b690f71f82b52eb7fd4ff01c9d63b6356a035e (patch)
tree1ac8414e053989e5d9c8d1098ae306d0362625be /actionpack/lib
parent5f56db44549ab1fa821efafa6781e1a8be044d57 (diff)
downloadrails-d9b690f71f82b52eb7fd4ff01c9d63b6356a035e.tar.gz
rails-d9b690f71f82b52eb7fd4ff01c9d63b6356a035e.tar.bz2
rails-d9b690f71f82b52eb7fd4ff01c9d63b6356a035e.zip
rake assets:precompile defaults to production env
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/sprockets/assets.rake1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/sprockets/assets.rake b/actionpack/lib/sprockets/assets.rake
index 0349b2865e..3bad86413f 100644
--- a/actionpack/lib/sprockets/assets.rake
+++ b/actionpack/lib/sprockets/assets.rake
@@ -2,6 +2,7 @@ namespace :assets do
# Ensures the RAILS_GROUPS environment variable is set
task :ensure_env do
ENV["RAILS_GROUPS"] ||= "assets"
+ ENV["RAILS_ENV"] ||= "production"
end
desc "Compile all the assets named in config.assets.precompile"