use Module::Pluggable::Object;
use MRO::Compat;
-our $VERSION = '0.81';
+our $VERSION = '0.88';
$VERSION = eval $VERSION;
-__PACKAGE__->mk_accessors(qw(plugins));
+has plugins => ( is => 'rw' );
sub execute {
my $self = shift;
my ( $controller, $c ) = @_;
- my @demethods = qw(POST PUT OPTIONS);
+ my @demethods = qw(POST PUT OPTIONS DELETE);
my $method = $c->request->method;
if ( grep /^$method$/, @demethods ) {
my ( $sclass, $sarg, $content_type ) =
return 1;
}
+__PACKAGE__->meta->make_immutable;
+
=head1 NAME
Catalyst::Action::Deserialize - Deserialize Data in a Request
You may distribute this code under the same terms as Perl itself.
=cut
-
-1;