From 13070d3447af4f02bee3e139744440c433755f6f Mon Sep 17 00:00:00 2001 From: edenc Date: Tue, 15 Sep 2009 03:51:37 +0000 Subject: added search spec sample to demo app --- lib/ComponentUI/TestModel/Foo/Action/SearchSpec/Update.pm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 lib/ComponentUI/TestModel/Foo/Action/SearchSpec/Update.pm (limited to 'lib/ComponentUI/TestModel/Foo/Action/SearchSpec/Update.pm') diff --git a/lib/ComponentUI/TestModel/Foo/Action/SearchSpec/Update.pm b/lib/ComponentUI/TestModel/Foo/Action/SearchSpec/Update.pm new file mode 100644 index 0000000..97d2feb --- /dev/null +++ b/lib/ComponentUI/TestModel/Foo/Action/SearchSpec/Update.pm @@ -0,0 +1,15 @@ +package ComponentUI::TestModel::Foo::Action::SearchSpec::Update; +use Reaction::Class; +use namespace::autoclean; + +use MooseX::Types::Common::String qw/NonEmptySimpleStr/; + +extends 'Reaction::InterfaceModel::Action'; +with 'Reaction::InterfaceModel::Search::UpdateSpec'; + +has 'first_name' => (isa => NonEmptySimpleStr, is => 'rw', required => 0); +has 'last_name' => (isa => NonEmptySimpleStr, is => 'rw', required => 0); + +sub _reflection_info {{ normal => [qw/first_name last_name/] }} + +1; -- cgit v1.2.3-54-g00ecf