From: Yuval Kogman Date: Thu, 14 Sep 2006 12:27:24 +0000 (+0000) Subject: document $c->detach with no args X-Git-Tag: 5.7099_04~351 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=264bac8c94a84d7dbac9912946d1a639fa37d1cd document $c->detach with no args --- diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index cb3e86d..2331ae6 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -293,9 +293,13 @@ sub forward { my $c = shift; $c->dispatcher->forward( $c, @_ ) } =head2 $c->detach( $class, $method, [, \@arguments ] ) +=head2 $c->detach() + The same as C, but doesn't return to the previous action when processing is finished. +When called with no arguments it escapes the processing chain entirely. + =cut sub detach { my $c = shift; $c->dispatcher->detach( $c, @_ ) }