Skip to content

Commit

Permalink
Remove unused use_sprockets config
Browse files Browse the repository at this point in the history
  • Loading branch information
spastorino authored and fxn committed Aug 13, 2011
1 parent 19ac034 commit 5b5b22a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion actionpack/lib/abstract_controller/asset_paths.rb
Expand Up @@ -3,7 +3,7 @@ module AssetPaths
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
7 changes: 0 additions & 7 deletions actionpack/lib/sprockets/railtie.rb
Expand Up @@ -11,13 +11,6 @@ class Railtie < ::Rails::Railtie
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
Expand Down

0 comments on commit 5b5b22a

Please sign in to comment.