diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2012-02-20 16:48:43 -0200 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2012-02-20 17:52:14 -0200 |
commit | 70fd692c1eada44027f9581f84461ca87abba8c6 (patch) | |
tree | e22731e320d8915dfaa3911bb5d90e5f33e239a8 /actionpack/lib/action_view | |
parent | 5e3b54d25aeb84c4d6806416fbd6c21c29564d6a (diff) | |
download | rails-70fd692c1eada44027f9581f84461ca87abba8c6.tar.gz rails-70fd692c1eada44027f9581f84461ca87abba8c6.tar.bz2 rails-70fd692c1eada44027f9581f84461ca87abba8c6.zip |
Use the right format when a partial is missing.
Closes #5025
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r-- | actionpack/lib/action_view/template.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/template.rb b/actionpack/lib/action_view/template.rb index edb3d427d5..644debd49c 100644 --- a/actionpack/lib/action_view/template.rb +++ b/actionpack/lib/action_view/template.rb @@ -163,6 +163,7 @@ module ActionView pieces = @virtual_path.split("/") name = pieces.pop partial = !!name.sub!(/^_/, "") + lookup.formats = @formats lookup.disable_cache do lookup.find_template(name, [ pieces.join('/') ], partial, @locals) end |