Revert "Config::JSON stopped providing a BUILDARGS method, so we can't "around" it. subclass new() the old fashioned way and bump the Config::JSON version dep so we know we're getting the non-Moose one."
... fix is bad Moose style and no one can replicate this problem but me; need to look harder for the problem locally
This reverts commit 55aead887b.
This commit is contained in:
parent
55aead887b
commit
560e7228fc
2 changed files with 6 additions and 5 deletions
|
|
@ -100,12 +100,13 @@ The filename of the config file to read.
|
|||
|
||||
=cut
|
||||
|
||||
sub new {
|
||||
my $package = shift;
|
||||
around BUILDARGS => sub {
|
||||
my $orig = shift;
|
||||
my $class = shift;
|
||||
my $filename = shift;
|
||||
$filename = Cwd::realpath(File::Spec->rel2abs($filename, WebGUI::Paths->configBase));
|
||||
return $package->SUPER::new($filename);
|
||||
}
|
||||
return $class->$orig($filename);
|
||||
};
|
||||
|
||||
1;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue