Skip to content

Commit

Permalink
use get_model_clone instead of get_model
Browse files Browse the repository at this point in the history
get_model is deprecated from Config::Model 2.134
  • Loading branch information
dod38fr committed May 20, 2019
1 parent 460af66 commit 63716cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Config/Model/Itself.pm
@@ -1,7 +1,7 @@
package Config::Model::Itself ;

use Mouse ;
use Config::Model 2.127;
use Config::Model 2.134;
use 5.010;

use IO::File ;
Expand Down Expand Up @@ -289,7 +289,7 @@ sub read_all {
foreach my $model_name (@models) {
# no need to dclone model as Config::Model object is temporary
my $raw_model = $tmp_model -> get_raw_model( $model_name ) ;
my $new_model = $tmp_model -> get_model( $model_name ) ;
my $new_model = $tmp_model -> get_model_clone( $model_name ) ;

$self->upgrade_model($model_name, $new_model);

Expand Down

0 comments on commit 63716cc

Please sign in to comment.