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

Fix typo in "Asset content" section of UPGRADING.md #167

Merged

Conversation

HashNotAdam
Copy link
Contributor

When referring to how to escape HTML tags, the documentation forgot to call the content method.

When using html_safe, an exception will be raised because html_safe is not defined on Propshaft::Asset.

Using raw, on the other hand, will call to_s on the Propshaft::Asset instance, returning an expected tag

When referring to how to escape HTML tags, the documentation forgot to
call the `content` method.

When using `html_safe`, an exception will be raised because `html_safe`
is not defined on `Propshaft::Asset`.

Using `raw`, on the other hand, will call `to_s` on the
`Propshaft::Asset` instance, returning an expected tag
@brenogazzola brenogazzola merged commit c2a87b5 into rails:main Dec 11, 2023
4 checks passed
@brenogazzola
Copy link
Collaborator

Thanks!

dhh pushed a commit that referenced this pull request May 15, 2024
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.

2 participants