X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class.git;a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FRelationship%2FManyToMany.pm;fp=lib%2FDBIx%2FClass%2FRelationship%2FManyToMany.pm;h=2812b6bf0c1debb906cc52b6ad2a7eb0ddca4cf2;hp=e715f10e45e6f8ca6d2588e3f505a02dac214ce4;hb=f4dc39d649672ff4452cf827ca204a1e937bc8b7;hpb=a4e4185f3c1e0af23dc3d916f706d0e92f95de45 diff --git a/lib/DBIx/Class/Relationship/ManyToMany.pm b/lib/DBIx/Class/Relationship/ManyToMany.pm index e715f10..2812b6b 100644 --- a/lib/DBIx/Class/Relationship/ManyToMany.pm +++ b/lib/DBIx/Class/Relationship/ManyToMany.pm @@ -7,9 +7,10 @@ use warnings; use DBIx::Class::Carp; use DBIx::Class::_Util qw( quote_sub perlstring ); -# FIXME - this souldn't be needed -my $cu; -BEGIN { $cu = \&carp_unique } +# FIXME - this should go away +# instead Carp::Skip should export usable keywords or something like that +my $unique_carper; +BEGIN { $unique_carper = \&carp_unique } use namespace::clean; @@ -82,7 +83,7 @@ EOC my @extra_meth_qsub_args = ( { '$rel_attrs' => \{ alias => $f_rel, %{ $rel_attrs||{} } }, - '$carp_unique' => \$cu, + '$carp_unique' => \$unique_carper, }, { attributes => [ 'DBIC_method_is_indirect_sugar',