From: Shawn M Moore Date: Wed, 30 Jul 2008 15:30:43 +0000 (+0000) Subject: Fix which add-modifier method gets called X-Git-Tag: 0.19~226 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=84e9b28560b15545a21b389885b0c9514fa93165;p=gitmo%2FMouse.git Fix which add-modifier method gets called --- diff --git a/lib/Mouse/Role.pm b/lib/Mouse/Role.pm index e538247..14ba27a 100644 --- a/lib/Mouse/Role.pm +++ b/lib/Mouse/Role.pm @@ -36,7 +36,7 @@ do { return sub { my $code = pop; for (@_) { - $caller->meta->add_before_method_modifier($_ => $code); + $caller->meta->add_after_method_modifier($_ => $code); } } }, @@ -45,7 +45,7 @@ do { return sub { my $code = pop; for (@_) { - $caller->meta->add_before_method_modifier($_ => $code); + $caller->meta->add_around_method_modifier($_ => $code); } } },