Fix role delegation
Shawn M Moore [Sat, 30 May 2009 22:00:34 +0000 (18:00 -0400)]
lib/Moose/Meta/Attribute.pm

index 54ba639..807d696 100644 (file)
@@ -627,7 +627,7 @@ sub _canonicalize_handles {
 
         return map { $_ => $_ } (
             $role_meta->get_method_list,
-            $role_meta->get_required_method_list
+            map { $_->name } $role_meta->get_required_method_list,
         );
     }
 }