diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-10-11 15:10:46 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-10-11 15:10:46 -0700 |
commit | 9d24f1fc996078cfecd32771815e619b3255d132 (patch) | |
tree | 841a5c00b53fc414b63f91dfd68d82feb7a355d2 /actionpack/lib | |
parent | 888a7a5bdc10bf5e2aceaad1cd40979a2388e4c0 (diff) | |
parent | 2938ef7a65be5527905174b348b58c98a06d20e4 (diff) | |
download | rails-9d24f1fc996078cfecd32771815e619b3255d132.tar.gz rails-9d24f1fc996078cfecd32771815e619b3255d132.tar.bz2 rails-9d24f1fc996078cfecd32771815e619b3255d132.zip |
Merge pull request #7912 from mrship/master
CacheDigests: Support templates in directories several levels deep
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_view/digestor.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/digestor.rb b/actionpack/lib/action_view/digestor.rb index 5d3add4091..f5852dbe73 100644 --- a/actionpack/lib/action_view/digestor.rb +++ b/actionpack/lib/action_view/digestor.rb @@ -64,7 +64,7 @@ module ActionView end def directory - name.split("/").first + name.split("/")[0..-2].join("/") end def partial? |