X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FAction%2FDeserialize.pm;h=e1a134b62f6f382e103866fa92dfbd0340255a77;hb=0fd45d2a3fbf41c788823c527f4c325cf6368c7c;hp=5170f25ef589795f0631fa44cad172328d831fa2;hpb=f465980c3c25b475d878716b7341d0a4f5c8f823;p=catagits%2FCatalyst-Action-REST.git diff --git a/lib/Catalyst/Action/Deserialize.pm b/lib/Catalyst/Action/Deserialize.pm index 5170f25..e1a134b 100644 --- a/lib/Catalyst/Action/Deserialize.pm +++ b/lib/Catalyst/Action/Deserialize.pm @@ -7,16 +7,16 @@ extends 'Catalyst::Action::SerializeBase'; use Module::Pluggable::Object; use MRO::Compat; -our $VERSION = '0.81'; +our $VERSION = '0.85'; $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 ) = @@ -41,6 +41,8 @@ sub execute { return 1; } +__PACKAGE__->meta->make_immutable; + =head1 NAME Catalyst::Action::Deserialize - Deserialize Data in a Request @@ -101,5 +103,3 @@ See L for authors. You may distribute this code under the same terms as Perl itself. =cut - -1;