aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ComponentUI
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/ComponentUI
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/ComponentUI')
-rw-r--r--lib/ComponentUI/Controller/TestModel/Bar.pm4
-rw-r--r--lib/ComponentUI/Controller/TestModel/Baz.pm4
-rw-r--r--lib/ComponentUI/Controller/TestModel/Foo.pm4
-rw-r--r--lib/ComponentUI/View/Site/Widget/Layout.pm3
4 files changed, 7 insertions, 8 deletions
diff --git a/lib/ComponentUI/Controller/TestModel/Bar.pm b/lib/ComponentUI/Controller/TestModel/Bar.pm
index 644a20f..f3140ee 100644
--- a/lib/ComponentUI/Controller/TestModel/Bar.pm
+++ b/lib/ComponentUI/Controller/TestModel/Bar.pm
@@ -4,8 +4,8 @@ use base 'Reaction::UI::CRUDController';
use Reaction::Class;
__PACKAGE__->config(
- model_base => 'TestModel',
- model_name => 'Bar',
+ model_name => 'TestModel',
+ collection_name => 'Bar',
action => { base => { Chained => '/base', PathPart => 'testmodel/bar' }},
);
diff --git a/lib/ComponentUI/Controller/TestModel/Baz.pm b/lib/ComponentUI/Controller/TestModel/Baz.pm
index ada76e4..a49c452 100644
--- a/lib/ComponentUI/Controller/TestModel/Baz.pm
+++ b/lib/ComponentUI/Controller/TestModel/Baz.pm
@@ -4,8 +4,8 @@ use base 'Reaction::UI::CRUDController';
use Reaction::Class;
__PACKAGE__->config(
- model_base => 'TestModel',
- model_name => 'Baz',
+ model_name => 'TestModel',
+ collection_name => 'Baz',
action => { base => { Chained => '/base', PathPart => 'testmodel/baz' } },
);
diff --git a/lib/ComponentUI/Controller/TestModel/Foo.pm b/lib/ComponentUI/Controller/TestModel/Foo.pm
index 846223e..3477e0f 100644
--- a/lib/ComponentUI/Controller/TestModel/Foo.pm
+++ b/lib/ComponentUI/Controller/TestModel/Foo.pm
@@ -4,8 +4,8 @@ use base 'Reaction::UI::CRUDController';
use Reaction::Class;
__PACKAGE__->config(
- model_base => 'TestModel',
- model_name => 'Foo',
+ model_name => 'TestModel',
+ collection_name => 'Foo',
action => { base => { Chained => '/base', PathPart => 'testmodel/foo' } },
);
diff --git a/lib/ComponentUI/View/Site/Widget/Layout.pm b/lib/ComponentUI/View/Site/Widget/Layout.pm
index 380a03a..5d1b57c 100644
--- a/lib/ComponentUI/View/Site/Widget/Layout.pm
+++ b/lib/ComponentUI/View/Site/Widget/Layout.pm
@@ -4,8 +4,7 @@ use Reaction::UI::WidgetClass;
class Layout which {
- widget renders [ qw(menu sidebar header main_content) =>
- { viewport => func('self', 'viewport') } ];
+ widget renders [ qw(menu sidebar header main_content) ];
menu renders [ string { "DUMMY" } ];
sidebar renders [ string { "Sidebar Shit" } ];