From: Rafael Kitover Date: Wed, 3 Jun 2009 23:28:14 +0000 (+0000) Subject: fix composition namespace X-Git-Tag: v0.26~13 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Model-DBIC-Schema.git;a=commitdiff_plain;h=f248883941b4d21f965a30f64f9be99b06ebeaf1 fix composition namespace --- diff --git a/lib/Catalyst/Model/DBIC/Schema.pm b/lib/Catalyst/Model/DBIC/Schema.pm index 7acec2c..c7f7c36 100644 --- a/lib/Catalyst/Model/DBIC/Schema.pm +++ b/lib/Catalyst/Model/DBIC/Schema.pm @@ -486,7 +486,7 @@ sub COMPONENT { sub BUILD { my $self = shift; - my $class = ref $self; + my $class = $self->_original_class_name; my $schema_class = $self->schema_class; if( !$self->connect_info ) {