Don't serialize if a view is explicitly set.
authorShea Levy <shea@shealevy.com>
Fri, 15 Mar 2013 15:54:35 +0000 (11:54 -0400)
committerShea Levy <shea@shealevy.com>
Fri, 15 Mar 2013 15:54:35 +0000 (11:54 -0400)
commit02f66fc06a2d9e248d1e551fd8e917e1eee7153f
tree96dec594b70619c999e14fb1f01556c1df3c23b2
parent05b98ffc56285f5b17e81156b227dfd2d03553da
Don't serialize if a view is explicitly set.

If the controller sets the view in $c->stash->{current_view} or
$c->stash->{current_view_instance}, then it is explicitly requesting a
certain kind of serialization and C::A::Serialize shouldn't override
that.

Signed-off-by: Shea Levy <shea@shealevy.com>
lib/Catalyst/Action/Serialize.pm