don't try and apply modifiers during role composition
[gitmo/Moo.git] / lib / Moo.pm
index fdaec57..2f27387 100644 (file)
@@ -33,6 +33,7 @@ sub import {
   };
   foreach my $type (qw(before after around)) {
     *{_getglob "${target}::${type}"} = sub {
+      require Class::Method::Modifiers;
       _install_modifier($target, $type, @_);
     };
   }