From: Shawn M Moore Date: Tue, 17 Jun 2008 03:44:04 +0000 (+0000) Subject: Tweaks to "with" X-Git-Tag: 0.19~299 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e7dff5dc48e3945ca311b03ac02c6734a0f9cfa6;p=gitmo%2FMouse.git Tweaks to "with" --- diff --git a/lib/Mouse.pm b/lib/Mouse.pm index cb525f0..939d845 100644 --- a/lib/Mouse.pm +++ b/lib/Mouse.pm @@ -76,8 +76,10 @@ do { my $role = shift; my $class = $caller->meta; + confess "Mouse::Role only supports 'with' on individual roles at a time"; + Mouse::load_class($role); - $role->apply_to_class($class); + $role->meta->apply_to_class($class); }; }, );