From: Christian Walde Date: Fri, 1 Jun 2012 13:22:44 +0000 (+0200) Subject: with now applies all roles and not just the first, since according to the POD with... X-Git-Tag: v0.091008~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMoo.git;a=commitdiff_plain;h=6067158cf3146f758b7975688b2ac124f2992a34 with now applies all roles and not just the first, since according to the POD with takes multiple roles now --- diff --git a/lib/Moo.pm b/lib/Moo.pm index 27242db..00aa4ed 100644 --- a/lib/Moo.pm +++ b/lib/Moo.pm @@ -34,7 +34,7 @@ sub import { }; _install_coderef "${target}::with" => "Moo::with" => sub { require Moo::Role; - Moo::Role->apply_roles_to_package($target, $_[0]); + Moo::Role->apply_roles_to_package($target, @_); $class->_maybe_reset_handlemoose($target); }; $MAKERS{$target} = {};