projects
/
gitmo/MooseX-SimpleConfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Fix tests
[gitmo/MooseX-SimpleConfig.git]
/
lib
/
MooseX
/
SimpleConfig.pm
diff --git
a/lib/MooseX/SimpleConfig.pm
b/lib/MooseX/SimpleConfig.pm
index
8ecdf92
..
824158d
100644
(file)
--- a/
lib/MooseX/SimpleConfig.pm
+++ b/
lib/MooseX/SimpleConfig.pm
@@
-10,6
+10,7
@@
use Config::Any ();
sub get_config_from_file {
my ($class, $file) = @_;
+ $file = $file->() if ref $file eq 'CODE';
my $files_ref = ref $file eq 'ARRAY' ? $file : [$file];
my $can_config_any_args = $class->can('config_any_args');