diff options
author | groditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2009-10-22 18:24:11 +0000 |
---|---|---|
committer | groditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2009-10-22 18:24:11 +0000 |
commit | 90bcd4d7fddc86d573c0cfc5d84e126ed1df2a83 (patch) | |
tree | ac27425c47fb0b958c9d1e80d6896407beec68ef /lib/ComponentUI | |
parent | 58db82a4efc562dacc3d4123a0583e94f8b48db3 (diff) | |
download | reaction-90bcd4d7fddc86d573c0cfc5d84e126ed1df2a83.tar.gz reaction-90bcd4d7fddc86d573c0cfc5d84e126ed1df2a83.zip |
first part of fix for attributes and roles mess. metclass coompat bug still lurks
Diffstat (limited to 'lib/ComponentUI')
-rw-r--r-- | lib/ComponentUI/Controller/Root.pm | 3 | ||||
-rw-r--r-- | lib/ComponentUI/Controller/TestModel/Bar.pm | 2 | ||||
-rw-r--r-- | lib/ComponentUI/Controller/TestModel/Baz.pm | 3 | ||||
-rw-r--r-- | lib/ComponentUI/Controller/TestModel/Foo.pm | 8 |
4 files changed, 9 insertions, 7 deletions
diff --git a/lib/ComponentUI/Controller/Root.pm b/lib/ComponentUI/Controller/Root.pm index 9a2017f..d88fce3 100644 --- a/lib/ComponentUI/Controller/Root.pm +++ b/lib/ComponentUI/Controller/Root.pm @@ -2,8 +2,9 @@ package ComponentUI::Controller::Root; use strict; use warnings; -use base 'Reaction::UI::Controller::Root'; + use Reaction::Class; +BEGIN { extends 'Reaction::UI::Controller::Root'; } use aliased 'Reaction::UI::ViewPort'; use aliased 'Reaction::UI::ViewPort::SiteLayout'; diff --git a/lib/ComponentUI/Controller/TestModel/Bar.pm b/lib/ComponentUI/Controller/TestModel/Bar.pm index 7ede58e..c346480 100644 --- a/lib/ComponentUI/Controller/TestModel/Bar.pm +++ b/lib/ComponentUI/Controller/TestModel/Bar.pm @@ -1,7 +1,7 @@ package ComponentUI::Controller::TestModel::Bar; -use base 'Reaction::UI::Controller::Collection::CRUD'; use Reaction::Class; +BEGIN { extends 'Reaction::UI::Controller::Collection::CRUD'; } __PACKAGE__->config( model_name => 'TestModel', diff --git a/lib/ComponentUI/Controller/TestModel/Baz.pm b/lib/ComponentUI/Controller/TestModel/Baz.pm index 6c88792..f426780 100644 --- a/lib/ComponentUI/Controller/TestModel/Baz.pm +++ b/lib/ComponentUI/Controller/TestModel/Baz.pm @@ -1,7 +1,8 @@ package ComponentUI::Controller::TestModel::Baz; -use base 'Reaction::UI::Controller::Collection::CRUD'; use Reaction::Class; +BEGIN { extends 'Reaction::UI::Controller::Collection::CRUD'; } + use ComponentUI::UI::ViewPort::Baz::ListView::Member; __PACKAGE__->config( diff --git a/lib/ComponentUI/Controller/TestModel/Foo.pm b/lib/ComponentUI/Controller/TestModel/Foo.pm index 8730432..d9f3659 100644 --- a/lib/ComponentUI/Controller/TestModel/Foo.pm +++ b/lib/ComponentUI/Controller/TestModel/Foo.pm @@ -1,7 +1,7 @@ package ComponentUI::Controller::TestModel::Foo; -use base 'Reaction::UI::Controller::Collection::CRUD'; use Reaction::Class; +BEGIN { extends 'Reaction::UI::Controller::Collection::CRUD'; } use aliased 'Reaction::UI::ViewPort::SearchableListViewContainer'; use aliased 'ComponentUI::TestModel::Foo::SearchSpec'; @@ -67,9 +67,9 @@ override _build_action_viewport_args => sub { }; sub object : Chained('base') PathPart('id') CaptureArgs(1) { - my ($self, $c, $object) = @_; - $self->next::method($c, $object); - # just as failing use case + my ($self, $c, $object) = @_; + $self->next::method($c, $object); + # just as failing use case } 1; |