fix lc in columngrouper.
Marcus Ramberg [Fri, 29 Jul 2005 11:30:47 +0000 (11:30 +0000)]
lib/DBIx/Class/CDBICompat/ColumnCase.pm

index 2916bab..05ab20f 100644 (file)
@@ -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 {