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

Raise template errors on correct line with annotations enabled #38950

Merged
merged 2 commits into from
Apr 14, 2020
Merged

Raise template errors on correct line with annotations enabled #38950

merged 2 commits into from
Apr 14, 2020

Conversation

joelhawksley
Copy link
Contributor

@joelhawksley joelhawksley commented Apr 14, 2020

Summary

This PR fixes a bug introduced in #38848 where template errors would be raised on the incorrect line if template annotations were enabled.

In order to consolidate the scope of the feature, @tenderlove and I simplified the implementation to just pass a preamble and postamble to Erubi.

cc @eileencodes

@rails-bot rails-bot bot added the actionview label Apr 14, 2020
@joelhawksley joelhawksley marked this pull request as draft April 14, 2020 21:31
@joelhawksley joelhawksley marked this pull request as ready for review April 14, 2020 21:46
@rafaelfranca rafaelfranca merged commit 673685c into rails:master Apr 14, 2020
@joelhawksley joelhawksley deleted the annotations-error-line branch April 14, 2020 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants