From: Karen Etheridge Date: Sun, 3 Feb 2013 01:37:43 +0000 (-0800) Subject: no need to coerce here - will happen automatically later on X-Git-Tag: 0.05~11 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f1040206706524d0d2f9ad2d8b2be983c6ef2971;p=gitmo%2FMooseX-ConfigFromFile.git no need to coerce here - will happen automatically later on --- diff --git a/lib/MooseX/ConfigFromFile.pm b/lib/MooseX/ConfigFromFile.pm index b08dde0..f1b5f21 100644 --- a/lib/MooseX/ConfigFromFile.pm +++ b/lib/MooseX/ConfigFromFile.pm @@ -27,7 +27,7 @@ sub new_with_config { } else { my $cfmeta = $class->meta->find_attribute_by_name('configfile'); - $configfile = try { to_File($class->configfile) }; + $configfile = try { $class->configfile }; $configfile ||= $cfmeta->default if $cfmeta->has_default; if (ref $configfile eq 'CODE') { $configfile = &$configfile($class);