From 730673c65f90d99322d641f7bb2783c5bb93c291 Mon Sep 17 00:00:00 2001 From: groditi Date: Fri, 25 Sep 2009 18:51:47 +0000 Subject: work arounds not necessary with newest MethodAttributes release (0.18) --- Changes | 2 ++ Makefile.PL | 1 + lib/Reaction/UI/Controller/Collection.pm | 2 +- lib/Reaction/UI/Controller/Collection/CRUD.pm | 4 ---- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Changes b/Changes index e2e42f2..bd40cd9 100644 --- a/Changes +++ b/Changes @@ -11,6 +11,8 @@ Revision history for Reaction - Add example of explicitly stating action to ComponentUI - Don't override custom location in push_viewport - Wire layout_args, which was forgotten + example of how to use it + - CRUD functionality is now implemented as roles, so it can be used + without needing to use Controller::Collection::CRUD 0.002000 - 29 Apr 2008 - Update CheckUniques role to use around instead of overrides - Stop using ACCEPT_CONTEXT, use InstancePerContext instead diff --git a/Makefile.PL b/Makefile.PL index 705461c..549760e 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -33,6 +33,7 @@ requires 'MooseX::Types' => '0.10'; requires 'MooseX::Types::URI' => '0.02'; requires 'MooseX::Types::Common' => '0.001000'; requires 'MooseX::Types::DateTime' => '0.03'; +requires 'MooseX::MethodAttributes' => '0.18'; requires 'Path::Class::Dir'; requires 'Path::Class::File'; requires 'Scalar::Util' => '1.19'; diff --git a/lib/Reaction/UI/Controller/Collection.pm b/lib/Reaction/UI/Controller/Collection.pm index d37f958..38cd61d 100644 --- a/lib/Reaction/UI/Controller/Collection.pm +++ b/lib/Reaction/UI/Controller/Collection.pm @@ -8,7 +8,7 @@ use aliased 'Reaction::UI::ViewPort::Collection::Grid'; __PACKAGE__->config( action => { list => { Chained => 'base', PathPart => '' }, - object => { Chained => 'base', PathPart => 'id', CaptureArgs => 1, }, + object => { Chained => 'base', PathPart => 'id' }, view => { Chained => 'object', }, }, ); diff --git a/lib/Reaction/UI/Controller/Collection/CRUD.pm b/lib/Reaction/UI/Controller/Collection/CRUD.pm index c8d1147..bebfc75 100644 --- a/lib/Reaction/UI/Controller/Collection/CRUD.pm +++ b/lib/Reaction/UI/Controller/Collection/CRUD.pm @@ -16,10 +16,6 @@ __PACKAGE__->config( with( 'Reaction::UI::Controller::Role::Action::Create', -); - -with( -# 'Reaction::UI::Controller::Role::Action::Create', 'Reaction::UI::Controller::Role::Action::Update', 'Reaction::UI::Controller::Role::Action::Delete', 'Reaction::UI::Controller::Role::Action::DeleteAll', -- cgit v1.2.3