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