rm ->make_immutable from PerRequestSchema trait
[catagits/Catalyst-Model-DBIC-Schema.git] / lib / Catalyst / TraitFor / Model / DBIC / Schema / PerRequestSchema.pm
index cdf00ee..337a3c1 100644 (file)
@@ -36,13 +36,11 @@ sub build_per_context_instance {
 
     my $new = bless {%$self}, ref $self;
 
-    $new->schema( $new->schema->clone($self->per_request_schema_attributes($ctx)) );
+    $new->schema($new->schema->clone($self->per_request_schema_attributes($ctx)));
 
     return $new;
 }
 
-__PACKAGE__->meta->make_immutable;
-
 =head1 SEE ALSO
 
 L<Catalyst::Model::DBIC::Schema>, L<DBIx::Class::Schema>