Skip to content

Commit

Permalink
try app_middleware instead of middleware
Browse files Browse the repository at this point in the history
This is a re-application of the change originally attempted in rails/sass-rails#386
  • Loading branch information
Hamms committed Oct 1, 2020
1 parent 8d0462d commit cdf930a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sassc/rails/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit cdf930a

Please sign in to comment.