use base 'Catalyst::Action';
use Class::Inspector;
-use Catalyst;
use Catalyst::Request::REST;
use Catalyst::Controller::REST;
BEGIN { require 5.008001; }
-our $VERSION = '0.73';
+our $VERSION = '0.76';
+$VERSION = eval $VERSION;
sub new {
my $class = shift;
my $config = shift;
Catalyst::Request::REST->_insert_self_into( $config->{class} );
- return $class->SUPER::new($config, @_);
+ return $class->next::method($config, @_);
}
=head1 NAME
my ($code, $name);
# Common case, for foo_GET etc
- if ($code = $controller->can($rest_method)) {
+ if ( $code = $controller->action_for($rest_method) ) {
+ $c->execute( $self->class, $self, @{ $c->req->args } );
+ return $c->forward( $code, $c->req->args );
+ } elsif ($code = $controller->can($rest_method)) {
# Exceute normal action
$c->execute( $self->class, $self, @{ $c->req->args } );
$name = $rest_method;
=back
-=head1 MAINTAINER
-
-J. Shirley <jshirley@gmail.com>
-
=head1 CONTRIBUTORS
Christopher Laco
Daisuke Maki <daisuke@endeworks.jp>
+J. Shirley <jshirley@gmail.com>
+
+Hans Dieter Pearcey
+
+Tomas Doran (t0m) <bobtfish@bobtfish.net>
+
=head1 AUTHOR
Adam Jacob <adam@stalecoffee.org>, with lots of help from mst and jrockway
-Marchex, Inc. paid me while I developed this module. (http://www.marchex.com)
+Marchex, Inc. paid me while I developed this module. (L<http://www.marchex.com>)
=head1 LICENSE