rails/rails — pull request #7912 by mrship (2012-10-11 19:40:58+00:00)
Title: CacheDigests: Support templates in directories several levels deep

Per the [PR](https://github.com/rails/cache_digests/pull/6) 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.