eval_without_redefine_warnings ("require $class");
}
catch {
- die "Failed to reload class $class: $_";
+ my $source = slurp $self->_get_dump_filename($class);
+ die "Failed to reload class $class: $_.\n\nCLASS SOURCE:\n\n$source";
};
}
die $@ if $@;
push @methods, @{ Class::Inspector->methods($class) || [] };
- push @methods, @{ Class::Inspector->methods('UNIVERSAL') || [] };
}
+ push @methods, @{ Class::Inspector->methods('UNIVERSAL') };
+
my %methods;
@methods{@methods} = ();
}
}
}
-
- # FIXME: it appears that this method should also check that the
- # default accessor (i.e. the column name itself) is not colliding
- # with any of these methods
}
# use the same logic to run moniker_map, column_accessor_map, and
my $accessor_name = $column_name;
$accessor_name =~ s/\W+/_/g;
- # for backcompat
- if( ($self->naming->{column_accessors}||'') =~ /(\d+)/ && $1 < 7 ) {
+ if ((($self->naming->{column_accessors}||'') =~ /(\d+)/ && $1 < 7) || (not $self->preserve_case)) {
# older naming just lc'd the col accessor and that's all.
return lc $accessor_name;
}
return join '_', map lc, split_name $column_name;
}
+
sub _make_column_accessor_name {
my ($self, $column_name, $column_context_info ) = @_;