X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Controller-DBIC-API.git;a=blobdiff_plain;f=lib%2FCatalyst%2FController%2FDBIC%2FAPI.pm;h=b595fb49ba6bb585c0abdbb5c9619683cd4e94f9;hp=7db1d8cb8e73fd7f56f9063c2629f484493a84c8;hb=07b00970f381c386ff40e4f13d5ab3c8bcf72c43;hpb=88d300e45ee7a34f351e25b416a4403df1d09813 diff --git a/lib/Catalyst/Controller/DBIC/API.pm b/lib/Catalyst/Controller/DBIC/API.pm index 7db1d8c..b595fb4 100644 --- a/lib/Catalyst/Controller/DBIC/API.pm +++ b/lib/Catalyst/Controller/DBIC/API.pm @@ -202,7 +202,7 @@ sub generate_rs { my ($self, $c) = @_; - return $c->model($self->class); + return $c->model($self->class || $c->stash->{class}); } =method_protected inflate_request