Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

try app_middleware instead of middleware #386

Closed
wants to merge 1 commit into from

Conversation

wjordan
Copy link

@wjordan wjordan commented Sep 2, 2016

Fixes #385, #136 (cannot modify frozen Array issues).

I don't know if this is the "proper" fix for these issues, but it's enough of a workaround for my particular use-case that I thought I'd share to get the ball rolling.

This change doesn't seem to fail any tests, but my guess is that this is due to a lack of test coverage on this particular use case rather than unchanged behavior, so perhaps some followup is still needed.

@rails-bot
Copy link

Thanks for the pull request, and welcome! The Rails team is excited to review your changes, and you should hear from @arthurnn (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@rails-bot
Copy link

warning Warning warning

  • Pull requests are usually filed against the master branch for this repo, but this one is against 5-0-stable. Please double check that you specified the right target!

@@ -32,7 +32,7 @@ class Railtie < ::Rails::Railtie

# Remove the sass middleware if it gets inadvertently enabled by applications.
config.after_initialize do |app|
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The proper fix is to change the middleware stack inside the initialization process. Can you change this block to a initializer?

Hamms added a commit to code-dot-org/sassc-rails that referenced this pull request Oct 1, 2020
This is a re-application of the change originally attempted in rails/sass-rails#386
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants