Permalink
Browse files

Fix for digestor to consider variants for partials -- this still need…

…s more testing!!
  • Loading branch information...
1 parent 47c3e06 commit 20845f6cd303daa6fe51ab29875a6b9b695da5d9 @dhh dhh committed Mar 19, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionview/lib/action_view/digestor.rb
@@ -100,7 +100,7 @@ def dependencies
def nested_dependencies
dependencies.collect do |dependency|
- dependencies = PartialDigestor.new(name: dependency, format: format, finder: finder).nested_dependencies
+ dependencies = PartialDigestor.new(name: dependency, format: format, variant: variant, finder: finder).nested_dependencies
dependencies.any? ? { dependency => dependencies } : dependency
end
end
@@ -133,7 +133,7 @@ def source
def dependency_digest
template_digests = dependencies.collect do |template_name|
- Digestor.digest(name: template_name, format: format, finder: finder, partial: true)
+ Digestor.digest(name: template_name, format: format, variant: variant, finder: finder, partial: true)
end
(template_digests + injected_dependencies).join("-")

0 comments on commit 20845f6

Please sign in to comment.