From: Shawn M Moore Date: Thu, 29 Jan 2009 00:02:16 +0000 (+0000) Subject: Pass consumer to generate_role X-Git-Tag: 0.05~11 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=44e155fd8efe4050fc1f0d2c3aa9bf6ccb568d0e;p=gitmo%2FMooseX-Role-Parameterized.git Pass consumer to generate_role --- diff --git a/lib/MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm b/lib/MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm index d965575..b3d3d43 100644 --- a/lib/MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm +++ b/lib/MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm @@ -77,6 +77,7 @@ sub generate_role { $self->role_generator->($parameters, operating_on => $role, + consumer => $args{consumer}, ); return $role;