Permalink
Browse files

reset instance->needs_save once saving is done

  • Loading branch information...
1 parent b599158 commit c7a1c0314b164c6d5f94490a964317c102a4a93f @dod38fr committed Apr 13, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 config-model-itself/lib/Config/Model/Itself.pm
@@ -276,6 +276,8 @@ sub write_all {
write_model_file ("$dir/$file", \@notes, \@data);
}
+
+ $self->model_object->instance->needs_save(0) ;
}
sub write_model_snippet {
@@ -301,6 +303,8 @@ sub write_model_snippet {
$class_dir =~ s!::!/!g;
write_model_file ("$snippet_dir/$class_dir/$model_file", \@notes, [ $data ]);
}
+
+ $self->model_object->instance->needs_save(0) ;
}
sub read_model_snippet {

0 comments on commit c7a1c03

Please sign in to comment.