X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FAction%2FSerialize.pm;h=cf34e8fc7ff3848f26a1b34c61630ab250d36d4d;hb=1bb213fc84712fcc13431f4e48b0d0ad74aa7dc3;hp=b1fc75d6f8e3fb879276a3527e174cd406fc2c93;hpb=be099c6c6c1f5b9f6c3c543762c1c1fcde82946a;p=catagits%2FCatalyst-Action-REST.git diff --git a/lib/Catalyst/Action/Serialize.pm b/lib/Catalyst/Action/Serialize.pm index b1fc75d..cf34e8f 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.07'; $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",