allow creating multiple related columns when updating or creating new records
[catagits/Catalyst-Controller-DBIC-API.git] / t / lib / RestTest / Controller / API / RPC / Artist.pm
index 2d0367d..e9a23cd 100644 (file)
@@ -8,9 +8,9 @@ __PACKAGE__->config
     ( action => { setup => { PathPart => 'artist', Chained => '/api/rpc/rpc_base' } },
       class => 'RestTestDB::Artist',
       create_requires => ['name'],
-      create_allows => ['name'],
-      update_allows => ['name'],
+      create_allows => ['name', { cds => ['*'] }],
+      update_allows => ['name', { cds => ['*'] }],
       prefetch_allows => [[qw/ cds /],{ 'cds' => 'tracks'}],
-      );
+    );
 
 1;