3 # Created by: Adam Jacob, Marchex, <adam@marchex.com>
4 # Created on: 10/12/2006 03:00:32 PM PDT
8 package Catalyst::Action::REST;
13 use base 'Catalyst::Action';
16 my ( $self, $c ) = @_;
18 my $controller = $self->class;
19 my $method = $self->name . "_" . uc($c->request->method);
20 if ($controller->can($method)) {
21 $c->log->debug("REST ActionClass is calling $method");
22 return $controller->$method($c);
24 $c->log->debug("REST ActionClass is calling " . $self->name);
25 return $c->execute( $self->class, $self );