Pass consumer to generate_role
Shawn M Moore [Thu, 29 Jan 2009 00:02:16 +0000 (00:02 +0000)]
lib/MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm

index d965575..b3d3d43 100644 (file)
@@ -77,6 +77,7 @@ sub generate_role {
 
     $self->role_generator->($parameters,
         operating_on => $role,
+        consumer     => $args{consumer},
     );
 
     return $role;