From: Nigel Metheringham Date: Fri, 24 Feb 2006 12:16:06 +0000 (+0000) Subject: Reverted previous unitentional change to Accessor.pm X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8e68b1160d0b121b1e14d83026283eb22fec06d5;p=dbsrgits%2FDBIx-Class-Historic.git Reverted previous unitentional change to Accessor.pm --- diff --git a/lib/DBIx/Class/Relationship/Accessor.pm b/lib/DBIx/Class/Relationship/Accessor.pm index c404c32..b94f238 100644 --- a/lib/DBIx/Class/Relationship/Accessor.pm +++ b/lib/DBIx/Class/Relationship/Accessor.pm @@ -39,8 +39,7 @@ sub add_relationship_accessor { }, deflate => sub { my ($val, $self) = @_; - $self->throw_exception("$val isn't a $f_class") - unless $val->isa($self->result_source->schema->class($f_class)); + $self->throw_exception("$val isn't a $f_class") unless $val->isa($f_class); return ($val->_ident_values)[0]; # WARNING: probably breaks for multi-pri sometimes. FIXME }