diff options
author | José Valim <jose.valim@gmail.com> | 2011-10-02 22:02:12 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-10-02 22:08:33 +0200 |
commit | d68884f4fddf5452f1dcbdf1a7b35d5889926fe5 (patch) | |
tree | 34f200d7a092bad4fb0a6fb0026d8cd76d637f02 /actionpack/lib/sprockets | |
parent | ac1fc5c59499db8d3e875bbd76e0b7c2c9240089 (diff) | |
download | rails-d68884f4fddf5452f1dcbdf1a7b35d5889926fe5.tar.gz rails-d68884f4fddf5452f1dcbdf1a7b35d5889926fe5.tar.bz2 rails-d68884f4fddf5452f1dcbdf1a7b35d5889926fe5.zip |
:group => :assets should only run in the assets environment.
Diffstat (limited to 'actionpack/lib/sprockets')
-rw-r--r-- | actionpack/lib/sprockets/railtie.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/sprockets/railtie.rb b/actionpack/lib/sprockets/railtie.rb index 6b67fb1d2d..6e93bd3035 100644 --- a/actionpack/lib/sprockets/railtie.rb +++ b/actionpack/lib/sprockets/railtie.rb @@ -14,7 +14,7 @@ module Sprockets load "sprockets/assets.rake" end - initializer "sprockets.environment", :group => :assets do |app| + initializer "sprockets.environment", :group => :all do |app| config = app.config next unless config.assets.enabled |