fixed POD bug, was not correctly printing scalar refs
Robert Buels [Thu, 18 Feb 2010 22:10:53 +0000 (14:10 -0800)]
lib/DBIx/Class/Schema/Loader/Base.pm

index 45fe926..08a685f 100644 (file)
@@ -1494,9 +1494,11 @@ sub _make_pod {
            $self->_pod( $class,
                         join "\n", map {
                             my $s = $attrs->{$_};
-                            $s = !defined $s      ? 'undef'          :
-                                 length($s) == 0  ? '(empty string)' :
-                                                     $s;
+                            $s = !defined $s         ? 'undef'          :
+                                  length($s) == 0     ? '(empty string)' :
+                                  ref($s) eq 'SCALAR' ? $$s              :
+                                                        $s
+                                  ;
 
                             "  $_: $s"
                         } sort keys %$attrs,