From f9744fb395ead5781e88ccf922692dbafff7e9f0 Mon Sep 17 00:00:00 2001 From: Zbigniew Lukasiak Date: Sat, 4 Sep 2010 18:37:04 +0200 Subject: [PATCH] removing constant --- .../WebNano-Controller-CRUD/lib/WebNano/Controller/CRUD.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/WebNano-Controller-CRUD/lib/WebNano/Controller/CRUD.pm b/extensions/WebNano-Controller-CRUD/lib/WebNano/Controller/CRUD.pm index 8806c5b..9c92614 100644 --- a/extensions/WebNano-Controller-CRUD/lib/WebNano/Controller/CRUD.pm +++ b/extensions/WebNano-Controller-CRUD/lib/WebNano/Controller/CRUD.pm @@ -49,7 +49,7 @@ around 'local_dispatch' => sub { my( $orig, $self, $path, @args ) = @_; my $parsed = $self->parse_path( $path ); if( $parsed ){ - my $rs = $self->application->schema->resultset( 'Dvd' ); + my $rs = $self->application->schema->resultset( $self->rs_name ); my $record = $rs->find( @{ $parsed->{ids} } ); if( ! $record ) { my $res = $self->request->new_response(404);