aboutsummaryrefslogtreecommitdiffstats
path: root/t/lib/RTest/TestDB/FooBaz.pm
diff options
context:
space:
mode:
authorgroditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2008-06-09 17:00:32 +0000
committergroditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2008-06-09 17:00:32 +0000
commit082e6aeeb7167fc35e814ee24967ff361967d2ea (patch)
tree3b8b4968a87ecca3d197973979ed68c9b4971281 /t/lib/RTest/TestDB/FooBaz.pm
parentae3f3fcc9b8807da0b382a20e7b6612bd9f49c00 (diff)
downloadreaction-082e6aeeb7167fc35e814ee24967ff361967d2ea.tar.gz
reaction-082e6aeeb7167fc35e814ee24967ff361967d2ea.zip
update DBIC stuff to the namespace::clean approach
Diffstat (limited to 't/lib/RTest/TestDB/FooBaz.pm')
-rw-r--r--t/lib/RTest/TestDB/FooBaz.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/t/lib/RTest/TestDB/FooBaz.pm b/t/lib/RTest/TestDB/FooBaz.pm
index 695b141..66e38c2 100644
--- a/t/lib/RTest/TestDB/FooBaz.pm
+++ b/t/lib/RTest/TestDB/FooBaz.pm
@@ -1,11 +1,9 @@
package # hide from PAUSE
RTest::TestDB::FooBaz;
-use DBIx::Class 0.07;
-
-use base qw/DBIx::Class/;
-
-__PACKAGE__->load_components(qw/InflateColumn::DateTime Core/);
+use base qw/DBIx::Class::Core/;
+use metaclass 'Reaction::Meta::Class';
+use Moose;
__PACKAGE__->table('foo_baz');
@@ -19,4 +17,6 @@ __PACKAGE__->set_primary_key(qw/foo baz/);
__PACKAGE__->belongs_to('foo' => 'RTest::TestDB::Foo');
__PACKAGE__->belongs_to('baz' => 'RTest::TestDB::Baz');
+__PACKAGE__->meta->make_immutable(inline_constructor => 0);
+
1;