apply_all_roles is broken with lists of role metas at the moment
Jesse Luehrs [Sun, 26 Sep 2010 19:23:07 +0000 (14:23 -0500)]
lib/Moose/Meta/Class.pm

index 2951ead..b37b8c9 100644 (file)
@@ -522,7 +522,7 @@ sub _reconcile_roles_for_metaclass {
 
     return Moose::Meta::Class->create_anon_class(
         superclasses => [$super_meta_name],
-        roles        => \@role_differences,
+        roles        => [map { $_->name } @role_differences],
         cache        => 1,
     );
 }