diff options
author | Joshua Peek <josh@joshpeek.com> | 2008-12-21 17:23:53 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-12-21 17:24:16 -0600 |
commit | 858a420ce18719c720b80508b336e37ce37a20bf (patch) | |
tree | 15c4178a13faa37476da412b738dfcc9e6398b04 /actionpack/lib/action_view/partials.rb | |
parent | f5b7f0911bc507673afe6a045176e6e3c7305d74 (diff) | |
download | rails-858a420ce18719c720b80508b336e37ce37a20bf.tar.gz rails-858a420ce18719c720b80508b336e37ce37a20bf.tar.bz2 rails-858a420ce18719c720b80508b336e37ce37a20bf.zip |
Ensure the template format is always passed to the template finder. Now we can cleanup some nasty stuff.
Diffstat (limited to 'actionpack/lib/action_view/partials.rb')
-rw-r--r-- | actionpack/lib/action_view/partials.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/partials.rb b/actionpack/lib/action_view/partials.rb index bbc995a340..59e82b98a4 100644 --- a/actionpack/lib/action_view/partials.rb +++ b/actionpack/lib/action_view/partials.rb @@ -228,7 +228,7 @@ module ActionView path = "_#{partial_path}" end - _pick_template(path) + self.view_paths.find_template(path, self.template_format) end memoize :_pick_partial_template end |