1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove unused use_sprockets config

This commit is contained in:
Santiago Pastorino 2011-07-25 19:06:30 -03:00 committed by Xavier Noria
parent 19ac034bdc
commit 5b5b22acb5
2 changed files with 1 additions and 8 deletions

View file

@ -3,7 +3,7 @@ module AbstractController
extend ActiveSupport::Concern
included do
config_accessor :asset_host, :asset_path, :assets_dir, :javascripts_dir, :stylesheets_dir, :use_sprockets
config_accessor :asset_host, :asset_path, :assets_dir, :javascripts_dir, :stylesheets_dir
end
end
end

View file

@ -11,13 +11,6 @@ module Sprockets
load "sprockets/assets.rake"
end
# Configure ActionController to use sprockets.
initializer "sprockets.set_configs", :after => "action_controller.set_configs" do |app|
ActiveSupport.on_load(:action_controller) do
self.use_sprockets = app.config.assets.enabled
end
end
# We need to configure this after initialization to ensure we collect
# paths from all engines. This hook is invoked exactly before routes
# are compiled, and so that other Railties have an opportunity to