annotate_models icon indicating copy to clipboard operation
annotate_models copied to clipboard

annotate -d doesn't respect model_dir config

Open khaiql opened this issue 4 years ago • 0 comments

In the auto_annotate_model.rake file, I have setup model_dir config to generate nested Rails engines model folders. Something like this:

 'model_dir' => 'app/models,engines/engine_1/app/models,engines/engines_2/app/models',
 'root_dir' => '',

Running annotate -d doesn't remove annotation in the nested models. But it works when I had to specify directly with --model-dir arguments:

annotate -d --model-dir app/models,engines/engine_1/app/models,engines/engines_2/app/models

So I expect when running annotate -d alone, it should pick up the same model_dir config, right?

Version

  • annotate version: 3.1.1
  • rails version: 6.0.2.2
  • ruby version: 2.6.6

khaiql avatar Apr 24 '20 01:04 khaiql