added REST and RPC delete_bulk tests and fixed RPC delete_bulk not working at all
[catagits/Catalyst-Controller-DBIC-API.git] / lib / Catalyst / Controller / DBIC / API / RPC.pm
index b3b17c3..c52e234 100644 (file)
@@ -43,6 +43,16 @@ As described in L<Catalyst::Controller::DBIC::API/setup>, this action is the cha
 
 =cut
 
+=method_protected index
+
+Chained: L</setup>
+PathPart: ''
+Args: 0
+
+Returns http status code 404 by default.
+
+=cut
+
 sub index : Chained('setup') PathPart('') Args(0) {
        my ( $self, $c ) = @_;
 
@@ -159,7 +169,7 @@ Provides an endpoint to the functionality described in L<Catalyst::Controller::D
 sub delete_bulk :Chained('objects_no_id') :PathPart('delete') :Args(0)
 {
     my ($self, $c) = @_;
-    $self->next::method($c);
+    $self->delete($c);
 }
 
 1;