From: Jesse Luehrs Date: Sun, 26 Sep 2010 19:23:07 +0000 (-0500) Subject: apply_all_roles is broken with lists of role metas at the moment X-Git-Tag: 1.15~61 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ebff30043a7d359f6e81867d6b77d50457345fa2;p=gitmo%2FMoose.git apply_all_roles is broken with lists of role metas at the moment --- diff --git a/lib/Moose/Meta/Class.pm b/lib/Moose/Meta/Class.pm index 2951ead..b37b8c9 100644 --- a/lib/Moose/Meta/Class.pm +++ b/lib/Moose/Meta/Class.pm @@ -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, ); }