[Catalyst] Class data in a Moose::Role plugin

2009-09-02 Thread Bill Moseley
I also tried with Catalyst::ClassData. Must be missing something. All modules up to date. On Perl 5.10.0. $ catalyst.pl MyApp $ cat lib/Catalyst/Plugin/Role.pm package Catalyst::Plugin::Role; use Moose::Role; use MooseX::ClassAttribute; class_has 'Cache' = ( is = 'rw',

Re: [Catalyst] Class data in a Moose::Role plugin

2009-09-02 Thread Tomas Doran
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.. Cheers t0m