Doc, Changelog, Attribution
Arthur Axel 'fREW' Schmidt [Thu, 27 Aug 2009 01:11:24 +0000 (20:11 -0500)]
Changes
lib/Catalyst/Action/REST.pm

diff --git a/Changes b/Changes
index 3af8865..31ddb85 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,3 +1,6 @@
+  Allow dispatching to Catalyst Actions, for use with ActionClasses
+  etc - fREW
+
   Fix test if CATALYST_DEBUG environment variable is set
 
 Fri Aug 21 21:20:52 BST 2009 (t0m) - Release 0.76
@@ -84,7 +87,7 @@ Thu Jan  3 17:23:58 PST 2008 (adam) - Release 0.60
   Updated my contact information.
   Prepped for release.
 
-Thu Jan  3 19:42:16 EST 2008 
+Thu Jan  3 19:42:16 EST 2008
        Fixed RT#30498 - REST controller references Catalyst without
          loading it first.
        Fixed RT#32042 - Import of Params::Validate :all plays badly
@@ -95,7 +98,7 @@ Thu Jan  3 08:54:09 PST 2008
        Fixed an issue where YAML::Syck versions 0.92 require $c->request->body to
          be stringified
 
-Fri Dec 21 15:23:46 EDT 2007 
+Fri Dec 21 15:23:46 EDT 2007
        Updated the configuration specifiers to operate more in line with the way
        Catalyst expects.  Most notably component based configuration through
        "Controller::RestClass" now works.  "serialize" at the top level simply
index f4e0a2f..87ba05f 100644 (file)
@@ -41,15 +41,18 @@ Catalyst::Action::REST - Automated REST Method Dispatching
       ... do something for GET requests ...
     }
 
-    sub foo_PUT {
-      ... do somethign for PUT requests ...
+    # alternatively use an Action
+    sub foo_PUT : Private {
+      ... do something for PUT requests ...
     }
 
 =head1 DESCRIPTION
 
 This Action handles doing automatic method dispatching for REST requests.  It
 takes a normal Catalyst action, and changes the dispatch to append an
-underscore and method name.
+underscore and method name.  First it will try dispatching to an action with
+the generated name, and failing that it will try to dispatch to a regular
+method.
 
 For example, in the synopsis above, calling GET on "/foo" would result in
 the foo_GET method being dispatched.
@@ -190,6 +193,8 @@ for this to run smoothly.
 
 =head1 CONTRIBUTORS
 
+Arthur Axel "fREW" Schmidt <frioux@gmail.com>
+
 Christopher Laco
 
 Luke Saunders