diff options
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/lib/action_view/digestor.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/actionview/lib/action_view/digestor.rb b/actionview/lib/action_view/digestor.rb index 6ef962383d..666291e1c1 100644 --- a/actionview/lib/action_view/digestor.rb +++ b/actionview/lib/action_view/digestor.rb @@ -122,8 +122,12 @@ module ActionView 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 |