Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…s more testing!!
  • Loading branch information...
commit 06b4f01fca1a31f174e24852e0bc2728e136e0b6 1 parent 1cb9f59
@dhh dhh authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionview/lib/action_view/digestor.rb
View
4 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 06b4f01

Please sign in to comment.
Something went wrong with that request. Please try again.