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/ComponentUI/Controller/TestModel/Bar.pm | 4 ++-- lib/ComponentUI/Controller/TestModel/Baz.pm | 4 ++-- lib/ComponentUI/Controller/TestModel/Foo.pm | 4 ++-- lib/ComponentUI/View/Site/Widget/Layout.pm | 3 +-- 4 files changed, 7 insertions(+), 8 deletions(-) (limited to 'lib/ComponentUI') 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" } ]; -- cgit v1.2.3-54-g00ecf