forked from lix-project/hydra
Don't try to serialize if there's nothing to serialize
Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
parent
f7bcf9fc19
commit
d6b23272e3
|
@ -239,7 +239,7 @@ sub end : ActionClass('RenderView') {
|
|||
$c->response->status . " " . HTTP::Status::status_message($c->response->status);
|
||||
}
|
||||
|
||||
$c->forward('serialize');
|
||||
$c->forward('serialize') if defined $c->stash->{resource};
|
||||
}
|
||||
|
||||
sub serialize : ActionClass('Serialize') { }
|
||||
|
|
Loading…
Reference in a new issue