aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ComponentUI/TestModel/Foo.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ComponentUI/TestModel/Foo.pm')
-rw-r--r--lib/ComponentUI/TestModel/Foo.pm22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/ComponentUI/TestModel/Foo.pm b/lib/ComponentUI/TestModel/Foo.pm
new file mode 100644
index 0000000..73de6b6
--- /dev/null
+++ b/lib/ComponentUI/TestModel/Foo.pm
@@ -0,0 +1,22 @@
+package ComponentUI::TestModel::Foo;
+
+use lib 't/lib';
+use Reaction::InterfaceModel::DBIC::ObjectClass;
+
+class Foo, which{
+ domain_model '_foo_store' =>
+ (isa => 'RTest::TestDB::Foo', inflate_result => 1,
+ handles => ['display_name'],
+ reflect => [qw(id first_name last_name baz_list)],
+ );
+
+ reflect_actions
+ (
+ Create => { attrs =>[qw(first_name last_name baz_list)] },
+ Update => { attrs =>[qw(first_name last_name baz_list)] },
+ Delete => {},
+ CustomAction => { attrs =>[qw(last_name baz_list)] },
+ );
+};
+
+1;