Improve the docs for MyAction attributes
André Walker [Tue, 12 Feb 2013 23:39:59 +0000 (21:39 -0200)]
lib/Catalyst/Controller.pm

index 0b197b0..5fcb574 100644 (file)
@@ -784,8 +784,12 @@ preferred to use L</Does>.
 
 =head2 MyAction
 
-Set the ActionClass using a custom Action in your project namespace (such as
-C<MyApp::Action::MyAction> => MyAction('MyAction').
+Set the ActionClass using a custom Action in your project namespace.
+
+The following is exactly the same:
+
+    sub foo_action1 : Local ActionClass('+MyApp::Action::Bar') { ... }
+    sub foo_action2 : Local MyAction('Bar') { ... }
 
 =head2 Does