Show the new way of doing things
[catagits/Catalyst-Manual.git] / lib / Catalyst / Manual / CatalystAndMoose.pod
index 1fc346e..cf2acd9 100644 (file)
@@ -137,11 +137,10 @@ themselves. For example
        };
        
 It is possible to have action methods with attributes inside Moose roles, using
-the trait introduced in L<MooseX::MethodAttributes> version 0.12, example:
+L<MooseX::MethodAttributes>, example:
 
     package MyApp::ControllerRole;
-    use MooseX::MethodAttributes ();
-    use Moose::Role -traits => 'MethodAttributes';
+    use MooseX::MethodAttribute::Role;
     use namespace::autoclean;
 
     sub foo : Local {