projects
/
catagits/Catalyst-Controller-DBIC-API.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Change order in generate_rs so that stash->{class} always overrides ->class Add tests
[catagits/Catalyst-Controller-DBIC-API.git]
/
lib
/
Catalyst
/
Controller
/
DBIC
/
API.pm
diff --git
a/lib/Catalyst/Controller/DBIC/API.pm
b/lib/Catalyst/Controller/DBIC/API.pm
index
7db1d8c
..
d3c2d0a
100644
(file)
--- 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($c->stash->{class} || $self->class);
}
=method_protected inflate_request