[Catalyst] Class data in a Moose::Role plugin
Bill Moseley
moseley at hank.org
Thu Sep 3 00:18:15 GMT 2009
On Wed, Sep 2, 2009 at 7:30 AM, Tomas Doran <bobtfish at bobtfish.net> wrote:
> Bill Moseley wrote:
>
>> I also tried with Catalyst::ClassData. Must be missing something.
>>
>
> Nope, you're not missing anything - class data in roles doesn't play
> nicely.
>
> This would all be a lot easier (or not needed) if we had an app class
> instance, rather than it being a class..
>
True.
In my case what I did was use package lexicals. Wasn't sure about that
because not sure how Moose does its magic.
Thanks,
-- =
Bill Moseley
moseley at hank.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20090902/fae9a=
6f5/attachment.htm
More information about the Catalyst
mailing list