X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Action-Serialize-Data-Serializer.git;a=blobdiff_plain;f=lib%2FCatalyst%2FAction%2FSerialize.pm;fp=lib%2FCatalyst%2FAction%2FSerialize.pm;h=bd9e09a58a69f3f0821207f2ee871778b0b23f62;hp=be6dda5c29759b35c08f7a02b83054d8a97c3ca4;hb=02f66fc06a2d9e248d1e551fd8e917e1eee7153f;hpb=05b98ffc56285f5b17e81156b227dfd2d03553da diff --git a/lib/Catalyst/Action/Serialize.pm b/lib/Catalyst/Action/Serialize.pm index be6dda5..bd9e09a 100644 --- a/lib/Catalyst/Action/Serialize.pm +++ b/lib/Catalyst/Action/Serialize.pm @@ -26,6 +26,8 @@ sub execute { return 1 if $c->response->has_body; return 1 if scalar @{ $c->error }; return 1 if $c->response->status =~ /^(?:204)$/; + return 1 if defined $c->stash->{current_view}; + return 1 if defined $c->stash->{current_view_instance}; my ( $sclass, $sarg, $content_type ) = $self->_load_content_plugins( "Catalyst::Action::Serialize",