small tweak to ResultSetManager (still doesn't work perfectly)
David Kamholz [Tue, 7 Feb 2006 19:16:39 +0000 (19:16 +0000)]
lib/DBIx/Class/ResultSetManager.pm

index c3ab98d..5891d7f 100644 (file)
@@ -31,7 +31,7 @@ sub _register_attributes {
         if ($attrs->[0] eq 'ResultSet') {
             no strict 'refs';
             my $resultset_class = $self->_setup_resultset_class;
-            *{"$resultset_class\::$meth"} = *{"$self\::$meth"};
+            *{"$resultset_class\::$meth"} = $self->can($meth);
             undef *{"$self\::$meth"};
         }
     }