Fix which add-modifier method gets called
Shawn M Moore [Wed, 30 Jul 2008 15:30:43 +0000 (15:30 +0000)]
lib/Mouse/Role.pm

index e538247..14ba27a 100644 (file)
@@ -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);
                 }
             }
         },