diff options
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 | ||||
-rw-r--r-- | lib/ComponentUI/TestModel/Foo.pm | 10 |
6 files changed, 17 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.... + ], ); diff --git a/lib/ComponentUI/TestModel/Foo.pm b/lib/ComponentUI/TestModel/Foo.pm new file mode 100644 index 0000000..70c2b99 --- /dev/null +++ b/lib/ComponentUI/TestModel/Foo.pm @@ -0,0 +1,10 @@ +package ComponentUI::TestModel::Foo; + +#use base 'Reaction::InterfaceModel::Object'; +use Reaction::Class; + +#1; +use aliased 'Reaction::InterfaceModel::Object'; +class Foo is Object, which{ }; + +1; |