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