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 mismatching variable names when using an underscore #10841

Merged
merged 1 commit into from Jun 4, 2013

Conversation

latortuga
Copy link
Contributor

This is a port of rails/cache_digests#51

The ERBTracker template digest helper class was using a regex to match render calls and it was incorrectly not matching against variables with underscores in the name. This caused it to use the wrong regex match data to populate the template dependency. Because underscore is a valid character for a variable, this fixes the ERBTracker to match it properly.

The ERBTracker template digest helper class was using a regex to match
render calls and it was incorrectly not matching against variables with
underscores in the name. This caused it to use the wrong regex match data
to populate the template dependency. Because underscore is a valid
character for a variable, this fixes the ERBTracker to match it properly.
dhh added a commit that referenced this pull request Jun 4, 2013
…acking

Fix mismatching variable names when using an underscore
@dhh dhh merged commit 95296f1 into rails:master Jun 4, 2013
@latortuga latortuga deleted the fix-underscore-dependency-tracking branch June 5, 2013 02:12
dhh added a commit that referenced this pull request Jun 13, 2013
…acking

Fix mismatching variable names when using an underscore
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.

None yet

2 participants