Skip to content

CacheDigests: Support templates in directories several levels deep #7912

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

Merged
merged 1 commit into from
Oct 11, 2012

Conversation

mrship
Copy link
Contributor

@mrship mrship commented Oct 11, 2012

Per the PR in cache_digests.

I have a view template structure in my Rails app that goes several directories deep.

To support that with cache_digests, this patch alters the #directory method in ActionView::Digestor to pop the template name off the end of the path and return the full view directory structure instead of taking just the first directory.

This was accepted into cache_digests gem, and is replicated here for rails per @dhh request.

rafaelfranca added a commit that referenced this pull request Oct 11, 2012
CacheDigests: Support templates in directories several levels deep
@rafaelfranca rafaelfranca merged commit 9d24f1f into rails:master Oct 11, 2012
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