X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FController%2FDBIC%2FAPI%2FStaticArguments.pm;h=71e873066ff9a90b6821cd542b9af4af6028cc4d;hb=b66d43106c928f395d6e0628f9f80b72a274b9d8;hp=063b75feb38273ec0194f41ea19bb72c59204cfc;hpb=73517f507669cada16503d144607e42c86b65f64;p=catagits%2FCatalyst-Controller-DBIC-API.git diff --git a/lib/Catalyst/Controller/DBIC/API/StaticArguments.pm b/lib/Catalyst/Controller/DBIC/API/StaticArguments.pm index 063b75f..71e8730 100644 --- a/lib/Catalyst/Controller/DBIC/API/StaticArguments.pm +++ b/lib/Catalyst/Controller/DBIC/API/StaticArguments.pm @@ -31,7 +31,7 @@ foreach my $var (qw/create_requires create_allows update_requires update_allows/ traits => ['Array'], default => sub { [] }, trigger => sub - { + { my ($self, $new) = @_; $self->check_column_relation($_, 1) for @$new; }, @@ -130,6 +130,15 @@ data_root controls how to reference where the data is in the the request_data has 'data_root' => ( is => 'ro', isa => Str, default => 'list'); +=attribute_public item_root is: ro, isa: Str, default: 'data' + +item_root controls how to reference where the data for single object +requests is in the the request_data + +=cut + +has 'item_root' => ( is => 'ro', isa => Str, default => 'data'); + =attribute_public total_entries_arg is: ro, isa: Str, default: 'totalcount' total_entries_arg controls how to reference 'total_entries' in the the request_data