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

use railtie to set default sanitizer #170

Closed
wants to merge 1 commit into from
Closed

Conversation

tongueroo
Copy link

@tongueroo tongueroo commented Oct 15, 2023

What

This PR sets the default sanitizer in a railtie.

Why

This requires a bit of explanation. Setting the default sanitizer in a railtie allows actionview to be used with frameworks other than Rails. In this case, I'm using actionview with Jets.

UPDATE: This PR is no longer relevant. Instead, this PR sets the default config.action_view.sanitizer_vendor is set in the actionview railtie.

Related PR on the actionview side rails/rails#49643 Thanks for considering the PR.

* add rails as a test dependency to fix tests
@tongueroo
Copy link
Author

No longer relevant. Setting config.action_view.sanitizer_vendor is set in the actionview railtie instead.

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.

1 participant