X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FController%2FREST.pm;h=737cb13b9e66f637710d2a800b1c0d796844cd0a;hb=def65dcc8983843dd6da4a40e03ee6fbded2b69a;hp=bb7fda92c1a6efd4a2bfaacb33f8c24221926c06;hpb=38c3a9b2841e1f056bf201c987dc0b9c16fafbb5;p=catagits%2FCatalyst-Action-REST.git diff --git a/lib/Catalyst/Controller/REST.pm b/lib/Catalyst/Controller/REST.pm index bb7fda9..737cb13 100644 --- a/lib/Catalyst/Controller/REST.pm +++ b/lib/Catalyst/Controller/REST.pm @@ -442,22 +442,22 @@ L. The C method uses L. The C method uses L. If you want to override either behavior, simply implement your own C and C actions -and use NEXT: +and use MRO::Compat: my Foo::Controller::Monkey; use base qw(Catalyst::Controller::REST); sub begin :Private { my ($self, $c) = @_; - ... do things before Deserializing ... - $self->NEXT::begin($c); + ... do things before Deserializing ... + $self->maybe::next::method($c); ... do things after Deserializing ... } sub end :Private { my ($self, $c) = @_; - ... do things before Serializing ... - $self->NEXT::end($c); + ... do things before Serializing ... + $self->maybe::next::method($c); ... do things after Serializing ... }