Don't try to serialize if there's nothing to serialize

Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
Shea Levy 2013-07-26 12:04:27 -04:00
parent f7bcf9fc19
commit d6b23272e3

View file

@ -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') { }