in reply to Moose Cookbook - Meta Recipe 5 Won't Run
I can't find it now, but IIRC, there is a tarball (or github repository) or the moose cookbook examples, so I would look for it, to see the file-layout
This works
BEGIN { package MyApp::Meta::Class::Trait::HasTable; use Moose::Role; has table => ( is => 'rw', isa => 'Str', ); package Moose::Meta::Class::Custom::Trait::HasTable; sub register_implementation { 'MyApp::Meta::Class::Trait::HasTable' } } package MyApp::User; use Moose -traits => 'HasTable'; __PACKAGE__->meta->table('User');
|
---|