diff options
author | matthewt <matthewt@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2007-09-12 18:11:34 +0000 |
---|---|---|
committer | matthewt <matthewt@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2007-09-12 18:11:34 +0000 |
commit | 7adfd53f17f66ffe93763e944ed1d3fc52a369dc (patch) | |
tree | 19e599e74419b41cbbe651fd226b81e8b73551d3 /lib/ComponentUI/Model | |
parent | c728c97cb1061330e63c7cc048e768ef74988fe6 (diff) | |
download | reaction-7adfd53f17f66ffe93763e944ed1d3fc52a369dc.tar.gz reaction-7adfd53f17f66ffe93763e944ed1d3fc52a369dc.zip |
moved shit to trunk
Diffstat (limited to 'lib/ComponentUI/Model')
-rw-r--r-- | lib/ComponentUI/Model/Action.pm | 16 | ||||
-rw-r--r-- | lib/ComponentUI/Model/TestDB.pm | 11 | ||||
-rw-r--r-- | lib/ComponentUI/Model/TestModel.pm | 12 |
3 files changed, 39 insertions, 0 deletions
diff --git a/lib/ComponentUI/Model/Action.pm b/lib/ComponentUI/Model/Action.pm new file mode 100644 index 0000000..9c03bb5 --- /dev/null +++ b/lib/ComponentUI/Model/Action.pm @@ -0,0 +1,16 @@ +package ComponentUI::Model::Action; + +use Reaction::Class; + +use lib 't/lib'; +use RTest::TestDB; + +use aliased 'Reaction::InterfaceModel::Action::DBIC::ActionReflector'; + +my $r = ActionReflector->new; + +$r->reflect_actions_for('RTest::TestDB::Foo' => __PACKAGE__); +$r->reflect_actions_for('RTest::TestDB::Bar' => __PACKAGE__); +$r->reflect_actions_for('RTest::TestDB::Baz' => __PACKAGE__); + +1; diff --git a/lib/ComponentUI/Model/TestDB.pm b/lib/ComponentUI/Model/TestDB.pm new file mode 100644 index 0000000..c2ae892 --- /dev/null +++ b/lib/ComponentUI/Model/TestDB.pm @@ -0,0 +1,11 @@ +package ComponentUI::Model::TestDB; + +use lib 't/lib'; +use base qw/Catalyst::Model::DBIC::Schema/; + +__PACKAGE__->config( + schema_class => 'RTest::TestDB', + connect_info => [ 'dbi:SQLite:t/var/reaction_test_withdb.db' ] +); + +1; diff --git a/lib/ComponentUI/Model/TestModel.pm b/lib/ComponentUI/Model/TestModel.pm new file mode 100644 index 0000000..4e9732c --- /dev/null +++ b/lib/ComponentUI/Model/TestModel.pm @@ -0,0 +1,12 @@ +package ComponentUI::Model::TestModel; + +use lib 't/lib'; +use base 'Reaction::InterfaceModel::DBIC::ModelBase'; + +__PACKAGE__->config + ( + im_class => 'ComponentUI::TestModel', + db_dsn => 'dbi:SQLite:t/var/reaction_test_withdb.db', + ); + +1; |