make class data unlock and relock classes if immutable
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Model.pm
index 0cd5dd2..4ab2ebc 100644 (file)
@@ -3,6 +3,11 @@ package Catalyst::Model;
 use Moose;
 extends qw/Catalyst::Component/;
 
+no Moose;
+
+#We can't immutablize anything that ISA Component just yet
+#__PACKAGE__->meta->make_immutable();
+
 =head1 NAME
 
 Catalyst::Model - Catalyst Model base class
@@ -31,4 +36,6 @@ the same terms as Perl itself.
 
 =cut
 
+__PACKAGE__->meta->make_immutable;
+
 1;