aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Reaction/InterfaceModel/Reflector/DBIC.pm
diff options
context:
space:
mode:
authorgroditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2007-10-23 16:58:00 +0000
committergroditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2007-10-23 16:58:00 +0000
commita4f82080351c17ad76981742a8e45231781f75fe (patch)
tree1bbf7847aac7891f1e32b951cd780e3cc12913bd /lib/Reaction/InterfaceModel/Reflector/DBIC.pm
parentf272565b546b9c07bc251eb0e998e8b2b4b6d19d (diff)
downloadreaction-a4f82080351c17ad76981742a8e45231781f75fe.tar.gz
reaction-a4f82080351c17ad76981742a8e45231781f75fe.zip
CRUDController syntax changed to be less retarded and Reflector::DBIC fixed to use DeleteAll action
Diffstat (limited to 'lib/Reaction/InterfaceModel/Reflector/DBIC.pm')
-rw-r--r--lib/Reaction/InterfaceModel/Reflector/DBIC.pm8
1 files changed, 5 insertions, 3 deletions
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;