From a4f82080351c17ad76981742a8e45231781f75fe Mon Sep 17 00:00:00 2001 From: groditi Date: Tue, 23 Oct 2007 16:58:00 +0000 Subject: CRUDController syntax changed to be less retarded and Reflector::DBIC fixed to use DeleteAll action --- lib/Reaction/InterfaceModel/Reflector/DBIC.pm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lib/Reaction/InterfaceModel/Reflector/DBIC.pm') diff --git a/lib/Reaction/InterfaceModel/Reflector/DBIC.pm b/lib/Reaction/InterfaceModel/Reflector/DBIC.pm index fca7fa5..326770f 100644 --- a/lib/Reaction/InterfaceModel/Reflector/DBIC.pm +++ b/lib/Reaction/InterfaceModel/Reflector/DBIC.pm @@ -43,8 +43,10 @@ class DBIC, which { }; implements build_builtin_collection_actions => as { - { Create => {name => 'Create', base => Create } }; - { DeleteAll => {name => 'DeleteAll', base => DeleteAll } }; + { + Create => {name => 'Create', base => Create }, + DeleteAll => {name => 'DeleteAll', base => DeleteAll } + }; }; implements _all_object_actions => as { @@ -299,7 +301,7 @@ class DBIC, which { unless( $reader ){ $reader = $source; $reader =~ s/([a-z0-9])([A-Z])/${1}_${2}/g ; - $reader = lc($reader) . "_collection"; + $reader = lc($reader) . "_collection"; #XXX change to not use _collection ? } unless( $dm_name ){ my @haystack = $meta->domain_models; -- cgit v1.2.3-54-g00ecf