diff options
author | groditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2007-11-16 21:20:55 +0000 |
---|---|---|
committer | groditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2007-11-16 21:20:55 +0000 |
commit | 89b70ba768f30857a6f8a10e689a89563a29364a (patch) | |
tree | 4efdda00c1b08984a822dc35cad651e5d73cf754 /lib/ComponentUI | |
parent | 59836a9d2708930cbed59fd9c7e654368c035bd4 (diff) | |
download | reaction-89b70ba768f30857a6f8a10e689a89563a29364a.tar.gz reaction-89b70ba768f30857a6f8a10e689a89563a29364a.zip |
fixed Bar Controller, tons of bugs everywhere, restructured controller namespace
Diffstat (limited to 'lib/ComponentUI')
-rw-r--r-- | lib/ComponentUI/Controller/Root.pm | 2 | ||||
-rw-r--r-- | lib/ComponentUI/Controller/TestModel/Bar.pm | 2 | ||||
-rw-r--r-- | lib/ComponentUI/Controller/TestModel/Baz.pm | 2 | ||||
-rw-r--r-- | lib/ComponentUI/Controller/TestModel/Foo.pm | 2 | ||||
-rw-r--r-- | lib/ComponentUI/TestModel.pm | 4 |
5 files changed, 7 insertions, 5 deletions
diff --git a/lib/ComponentUI/Controller/Root.pm b/lib/ComponentUI/Controller/Root.pm index 567cf3b..a4d42ee 100644 --- a/lib/ComponentUI/Controller/Root.pm +++ b/lib/ComponentUI/Controller/Root.pm @@ -2,7 +2,7 @@ package ComponentUI::Controller::Root; use strict; use warnings; -use base 'Reaction::UI::RootController'; +use base 'Reaction::UI::Controller::Root'; use Reaction::Class; use aliased 'Reaction::UI::ViewPort'; diff --git a/lib/ComponentUI/Controller/TestModel/Bar.pm b/lib/ComponentUI/Controller/TestModel/Bar.pm index f3140ee..f7859b7 100644 --- a/lib/ComponentUI/Controller/TestModel/Bar.pm +++ b/lib/ComponentUI/Controller/TestModel/Bar.pm @@ -1,6 +1,6 @@ package ComponentUI::Controller::TestModel::Bar; -use base 'Reaction::UI::CRUDController'; +use base 'Reaction::UI::Controller::Collection::CRUD'; use Reaction::Class; __PACKAGE__->config( diff --git a/lib/ComponentUI/Controller/TestModel/Baz.pm b/lib/ComponentUI/Controller/TestModel/Baz.pm index a49c452..f1d7c8b 100644 --- a/lib/ComponentUI/Controller/TestModel/Baz.pm +++ b/lib/ComponentUI/Controller/TestModel/Baz.pm @@ -1,6 +1,6 @@ package ComponentUI::Controller::TestModel::Baz; -use base 'Reaction::UI::CRUDController'; +use base 'Reaction::UI::Controller::Collection::CRUD'; use Reaction::Class; __PACKAGE__->config( diff --git a/lib/ComponentUI/Controller/TestModel/Foo.pm b/lib/ComponentUI/Controller/TestModel/Foo.pm index 3477e0f..cc821c5 100644 --- a/lib/ComponentUI/Controller/TestModel/Foo.pm +++ b/lib/ComponentUI/Controller/TestModel/Foo.pm @@ -1,6 +1,6 @@ package ComponentUI::Controller::TestModel::Foo; -use base 'Reaction::UI::CRUDController'; +use base 'Reaction::UI::Controller::Collection::CRUD'; use Reaction::Class; __PACKAGE__->config( diff --git a/lib/ComponentUI/TestModel.pm b/lib/ComponentUI/TestModel.pm index 2559776..e13c31c 100644 --- a/lib/ComponentUI/TestModel.pm +++ b/lib/ComponentUI/TestModel.pm @@ -11,7 +11,9 @@ $reflector->reflect_schema ( model_class => __PACKAGE__, schema_class => 'RTest::TestDB', - sources => [qw/Foo Bar Baz/], + sources => [qw/Foo Baz/, + [ Bar => {attributes => [[-exclude => 'avatar']] } ], ## for now.... + ], ); |