From: David Kamholz Date: Tue, 7 Feb 2006 22:11:18 +0000 (+0000) Subject: small fix to ResultSetManager X-Git-Tag: v0.05005~22 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e8861f71b6876901a05c98452b8bce5d84ca6420;p=dbsrgits%2FDBIx-Class.git small fix to ResultSetManager --- diff --git a/lib/DBIx/Class/ResultSetManager.pm b/lib/DBIx/Class/ResultSetManager.pm index 5891d7f..c8e3bd6 100644 --- a/lib/DBIx/Class/ResultSetManager.pm +++ b/lib/DBIx/Class/ResultSetManager.pm @@ -9,9 +9,12 @@ __PACKAGE__->table_resultset_class_suffix('::_resultset'); sub table { my ($self,@rest) = @_; - $self->next::method(@rest); - $self->_register_attributes; - $self->_register_resultset_class; + my $ret = $self->next::method(@rest); + if (@rest) { + $self->_register_attributes; + $self->_register_resultset_class; + } + return $ret; } sub load_resultset_components {