From: Marcus Ramberg Date: Fri, 29 Jul 2005 11:30:47 +0000 (+0000) Subject: fix lc in columngrouper. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=be7fff92e36a407ac727ce8044af3d323a28037c;p=dbsrgits%2FDBIx-Class-Historic.git fix lc in columngrouper. --- diff --git a/lib/DBIx/Class/CDBICompat/ColumnCase.pm b/lib/DBIx/Class/CDBICompat/ColumnCase.pm index 2916bab..05ab20f 100644 --- a/lib/DBIx/Class/CDBICompat/ColumnCase.pm +++ b/lib/DBIx/Class/CDBICompat/ColumnCase.pm @@ -23,7 +23,9 @@ sub has_a { sub has_many { my ($class, $rel, $f_class, $f_key, @rest) = @_; - return $class->NEXT::ACTUAL::has_many($rel, $f_class, lc($f_key), @rest); + return $class->NEXT::ACTUAL::has_many($rel, $f_class, ( ref($f_key) ? + $f_key : + lc($f_key) ), @rest); } sub get_has_a {