Simmi Badhan
Simmi Badhan

Reputation: 533

How to annotate rails engine models with annotate_models gem?

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

Answers (1)

jrochkind
jrochkind

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

Related Questions