From: Karen Etheridge Date: Tue, 19 Mar 2013 23:39:31 +0000 (-0700) Subject: $obj->new_with_config will cause the old configfile to be passed through X-Git-Tag: v0.11~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=74e7e6279f4e747018a3b72a8c13ea21e3919395;p=gitmo%2FMooseX-ConfigFromFile.git $obj->new_with_config will cause the old configfile to be passed through --- diff --git a/lib/MooseX/ConfigFromFile.pm b/lib/MooseX/ConfigFromFile.pm index 5fa8cac..cd6cfdf 100644 --- a/lib/MooseX/ConfigFromFile.pm +++ b/lib/MooseX/ConfigFromFile.pm @@ -35,7 +35,7 @@ sub new_with_config { else { # This would only succeed if the consumer had defined a new configfile # sub to override the generated reader - as suggested in old - # documentation + # documentation -- or if $class is an instance not a class name $configfile = try { $class->configfile }; # this is gross, but since a lot of users have swapped in their own