$c->log->info("Could not find a serializer for $content_type");
} else {
$c->log->info(
- "Could not find a serializer for an empty content type");
+ "Could not find a serializer for an empty content-type");
}
return 1;
}
You may distribute this code under the same terms as Perl itself.
=cut
-
my $config;
if ( exists $controller->{'serialize'} ) {
- $c->log->info("Using deprecated configuration for Catalyst::Action::REST!");
- $c->log->info("Please see perldoc Catalyst::Action::REST for the update guide");
+ $c->log->info("Catalyst::Action::REST - deprecated use of 'serialize' for configuration.");
+ $c->log->info("Please see 'CONFIGURATION' in Catalyst::Controller::REST.");
$config = $controller->{'serialize'};
# if they're using the deprecated config, they may be expecting a
# default mapping too.
You may distribute this code under the same terms as Perl itself.
=cut
-
use parent 'Catalyst::Controller::REST';
+=head1 CONFIGURATION
+
+See L<Catalyst::Action::Serialize/CONFIGURATION>. Note that the C<serialize>
+key has been deprecated.
+
+
=head1 SERIALIZATION
Catalyst::Controller::REST will automatically serialize your