diff --git a/lib/sassc/rails/railtie.rb b/lib/sassc/rails/railtie.rb index 407635c..142b19f 100644 --- a/lib/sassc/rails/railtie.rb +++ b/lib/sassc/rails/railtie.rb @@ -28,7 +28,7 @@ class Railtie < ::Rails::Railtie # Remove the sass middleware if it gets inadvertently enabled by applications. config.after_initialize do |app| - app.config.middleware.delete(Sass::Plugin::Rack) if defined?(Sass::Plugin::Rack) + app.config.app_middleware.delete(Sass::Plugin::Rack) if defined?(Sass::Plugin::Rack) end initializer :setup_sass, group: :all do |app|