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