do nothing at construction time for attributes with undef init_arg - fixes undefined...
[gitmo/MooseX-UndefTolerant.git] / lib / MooseX / UndefTolerant / Composite.pm
CommitLineData
fff0a09d 1package MooseX::UndefTolerant::Composite;
2use Moose::Role;
3
4around apply_params => sub {
5 my $orig = shift;
6 my $self = shift;
7
8 $self->$orig(@_);
9
10 $self = Moose::Util::MetaRole::apply_metaroles(
11 for => $self,
12 role_metaroles => {
13 application_to_class =>
14 ['MooseX::UndefTolerant::ApplicationToClass'],
15 application_to_role =>
16 ['MooseX::UndefTolerant::ApplicationToRole'],
17 },
18 );
19
20 return $self;
21};
22
23no Moose::Role;
24
251;