Reputation: 533
I can annotate my models using
annotate --exclude tests,fixtures,factories,serializers
How can I annotate models inside my rails engine? I tried using
annotate --model-dir ../your-engine-name/app/models
but it didn't work.
Upvotes: 0
Views: 1081
Reputation: 23347
The engine, if it's installed as a gem, probably isn't located at ../your-engine-name
Try:
--model-dir `bundle show your_engine_name`/app/models
Upvotes: 1