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:53:02 -0200 |
commit | 8b86259beadd18a949669ac83c0e2b647288c06d (patch) | |
tree | 6858a3f552a92c44527bd472d442246329c665c1 /actionpack/lib/action_view/template.rb | |
parent | 8c870f11f2acecc56bfb6e77db2330cd9bdd9135 (diff) | |
download | rails-8b86259beadd18a949669ac83c0e2b647288c06d.tar.gz rails-8b86259beadd18a949669ac83c0e2b647288c06d.tar.bz2 rails-8b86259beadd18a949669ac83c0e2b647288c06d.zip |
Use the right format when a partial is missing.
Closes #5025
Diffstat (limited to 'actionpack/lib/action_view/template.rb')
-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 eac6287b0b..af6e5d0645 100644 --- a/actionpack/lib/action_view/template.rb +++ b/actionpack/lib/action_view/template.rb @@ -164,6 +164,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 |