diff options
Diffstat (limited to 'actionpack/lib/sprockets')
-rw-r--r-- | actionpack/lib/sprockets/railtie.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/actionpack/lib/sprockets/railtie.rb b/actionpack/lib/sprockets/railtie.rb new file mode 100644 index 0000000000..4eb302d4a6 --- /dev/null +++ b/actionpack/lib/sprockets/railtie.rb @@ -0,0 +1,9 @@ +require "sprockets" + +class Sprockets::Railtie < Rails::Railtie + 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 +end
\ No newline at end of file |