X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FAction%2FSerialize.pm;h=bd9e09a58a69f3f0821207f2ee871778b0b23f62;hb=02f66fc06a2d9e248d1e551fd8e917e1eee7153f;hp=b1fc75d6f8e3fb879276a3527e174cd406fc2c93;hpb=be099c6c6c1f5b9f6c3c543762c1c1fcde82946a;p=catagits%2FCatalyst-Action-Serialize-Data-Serializer.git diff --git a/lib/Catalyst/Action/Serialize.pm b/lib/Catalyst/Action/Serialize.pm index b1fc75d..bd9e09a 100644 --- a/lib/Catalyst/Action/Serialize.pm +++ b/lib/Catalyst/Action/Serialize.pm @@ -7,7 +7,7 @@ extends 'Catalyst::Action::SerializeBase'; use Module::Pluggable::Object; use MRO::Compat; -our $VERSION = '1.03'; +our $VERSION = '1.06'; $VERSION = eval $VERSION; has _encoders => ( @@ -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",