No more alias_method for roles either. This meant more or less copying
[gitmo/Moose.git] / lib / Moose / Meta / Role / Application / ToRole.pm
index 0a9e3b6..1723929 100644 (file)
@@ -78,7 +78,7 @@ sub apply_methods {
                 Moose->throw_error("Cannot create a method alias if a local method of the same name exists");
             }
 
-            $role2->alias_method(
+            $role2->add_method(
                 $aliased_method_name,
                 $role1->get_method($method_name)
             );
@@ -100,7 +100,7 @@ sub apply_methods {
         }
         else {
             # add it, although it could be overriden
-            $role2->alias_method(
+            $role2->add_method(
                 $method_name,
                 $role1->get_method($method_name)
             );