Commit | Line | Data |
---|---|---|
5d02e790 | 1 | package TestApp::Model::Generating; |
2 | use Moose; | |
3 | extends 'Catalyst::Model'; | |
4 | ||
5 | sub BUILD { | |
6 | Class::MOP::Class->create( | |
7 | 'TestApp::Model::Generated' => ( | |
8 | methods => { | |
9 | foo => sub { 'foo' } | |
10 | } | |
11 | ) | |
12 | ); | |
13 | } | |
14 | ||
15 | sub expand_modules { | |
16 | return ('TestApp::Model::Generated'); | |
17 | } | |
18 | ||
19 | __PACKAGE__->meta->make_immutable; | |
20 | no Moose; | |
21 | ||
22 | 1; |