I don't have time to make another patch just now, but I wanted to say I did find a small problem with the previous one. Rather than using $self->{record_class}, I've replaced that with a Class::Data::Inheritable field named _record_class since templates are called without a blessed invocant.
<br><br><div><span class="gmail_quote">On 8/19/07, <b class="gmail_sendername">Andrew Sterling Hanenkamp</b> <<a href="mailto:sterling@hanenkamp.com">sterling@hanenkamp.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Here's the working patch.<br><br><div><span class="q"><span class="gmail_quote">On 8/19/07, <b class="gmail_sendername">Andrew Sterling Hanenkamp</b> <<a href="mailto:sterling@hanenkamp.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
sterling@hanenkamp.com</a>> wrote:</span>
</span><div><span class="e" id="q_1147fa3a52dbe6d1_2"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I've attached a patch that should alter the way object_type is used. This is (should be, I haven't profiled to confirm) a very slight performance improvement and allow object_type() to be overridden to any class rather than just a class name prefixed with "MyApp::Module::".
<br><br>Cheers,<br><span>Andrew<br>
</span><br clear="all"></blockquote></span></div></div><br>
<br clear="all"></blockquote></div><br>