rails/cache_digests — pull request #51 by latortuga (2013-06-04 18:36:47+00:00)
Title: Fix issue with not matching renders when using an underscore

This fixes #50. The regex being used to match render calls was incorrectly not matching against variables with underscores in the name and so it was using 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.

This is the gist of the change:

```ruby
# Before:
render feed_status.user # => Dependency: 'feed_statuses/feed_status.users'

# After:
render feed_status.user # => Dependency: 'users/user'
```

Failing test included.