Revision history for Perl extension MooseX::ConfigFromFile
+ - allow configfiles called "0"
+
0.07 - 2013-02-04 (Karen Etheridge)
- fixed tests to not load optional dependencies
# default subs, we have to keep calling it rather than calling a
# builder sub directly - and it might not even be a coderef either
my $cfmeta = $class->meta->find_attribute_by_name('configfile');
- $configfile ||= $cfmeta->default if $cfmeta->has_default;
+ $configfile = $cfmeta->default if not defined $configfile and $cfmeta->has_default;
if (ref $configfile eq 'CODE') {
$configfile = $configfile->($class);