Permalink
Browse files

Disable LookupContext's cache when looking for template

  • Loading branch information...
1 parent 48a6bae commit 4725d588960213fd617d3d17c936aa206a161cfb @lukaszx0 lukaszx0 committed Mar 13, 2014
Showing with 6 additions and 2 deletions.
  1. +6 −2 actionview/lib/action_view/digestor.rb
@@ -122,8 +122,12 @@ def partial?
def template
@template ||= begin
- finder.variants = [ variant ]
- finder.find(logical_name, [], partial?)
+ finder.formats = [format]
+ finder.variants = [variant]
+
+ finder.disable_cache do
+ finder.find(logical_name, [], partial?)
+ end
end
end

0 comments on commit 4725d58

Please sign in to comment.