<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -55,7 +55,8 @@ module Presenter #:nodoc:
         response.template.template_format = format
         response.content_type = request.format.to_s #=&gt; &quot;text/html&quot;
         
-        template = default_template(options.delete(:action) || action_name) rescue nil
+        template_name = default_template_name(options.delete(:action) || action_name)
+        template = self.view_paths.find_template(template_name, format) rescue nil
         if template
           render options.merge(:template=&gt;template)
         elsif object.respond_to?(&quot;to_#{format}&quot;)</diff>
      <filename>vendor/plugins/presenter/lib/presenter/responding.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>aff49e0b1a6db8a6bfa4b80d83524c8c00804672</id>
    </parent>
  </parents>
  <author>
    <name>Assaf Arkin</name>
    <email>assaf@labnotes.org</email>
  </author>
  <url>http://github.com/intalio/singleshot/commit/ccb4e27296473254f888e0542f81b3f9124158f9</url>
  <id>ccb4e27296473254f888e0542f81b3f9124158f9</id>
  <committed-date>2009-06-29T11:03:02-07:00</committed-date>
  <authored-date>2009-06-29T11:03:02-07:00</authored-date>
  <message>Fix presenter to use appropriate to_xxx method when template not available</message>
  <tree>0bcf7c52839c287677d8a1c38d27e0c2da23953c</tree>
  <committer>
    <name>Assaf Arkin</name>
    <email>assaf@labnotes.org</email>
  </committer>
</commit>
