[jifty-devel] Re: Improve CRUD->object_type

Andrew Sterling Hanenkamp sterling at hanenkamp.com
Sun Aug 19 16:55:51 EDT 2007


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.

On 8/19/07, Andrew Sterling Hanenkamp <sterling at hanenkamp.com> wrote:
>
> Here's the working patch.
>
> On 8/19/07, Andrew Sterling Hanenkamp <sterling at hanenkamp.com> wrote:
> >
> > 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::".
> >
> > Cheers,
> > Andrew
> >
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.bestpractical.com/pipermail/jifty-devel/attachments/20070819/84917558/attachment-0001.htm


More information about the jifty-devel mailing list