Merge branch 'master' of git://github.com/jshirley/catalyst-action-rest
[catagits/Catalyst-Action-REST.git] / lib / Catalyst / Action / SerializeBase.pm
index d4c53b9..93108bb 100644 (file)
@@ -11,7 +11,6 @@ use warnings;
 
 use base 'Catalyst::Action';
 use Module::Pluggable::Object;
-use Data::Dump qw(dump);
 use Catalyst::Request::REST;
 use Catalyst::Utils ();
 
@@ -54,6 +53,9 @@ sub _load_content_plugins {
         $c->log->info("Using deprecated configuration for Catalyst::Action::REST!");
         $c->log->info("Please see perldoc Catalyst::Action::REST for the update guide");
         $config = $controller->{'serialize'};
+        # if they're using the deprecated config, they may be expecting a
+        # default mapping too.
+        $config->{map} ||= $controller->{map};
     } else {
         $config = $controller;
     }