Added 'use MooseX::MethodAttributes ();' for roles and attributes.
[catagits/Catalyst-Manual.git] / lib / Catalyst / Manual / CatalystAndMoose.pod
index 6f6f9b4..1fc346e 100644 (file)
@@ -140,6 +140,7 @@ It is possible to have action methods with attributes inside Moose roles, using
 the trait introduced in L<MooseX::MethodAttributes> version 0.12, example:
 
     package MyApp::ControllerRole;
+    use MooseX::MethodAttributes ();
     use Moose::Role -traits => 'MethodAttributes';
     use namespace::autoclean;