Skip to content
This repository

doesn't work in engines ? #88

alotela opened this Issue · 8 comments

6 participants

alotela Rahul kumar garg Alex Chaffee Mikael Henriksson Morgan Christiansson Cuong Tran


is it me, or annotate doesn't work with engines models ?


Rahul kumar garg

Yep, It's not picking models/routs of Engines for me too..

any solution/workaround ?

Alex Chaffee
Rahul kumar garg

Tried that, but it doesn't pick tables for engine models.

For e.g. my engine model is

module Enginename
class ModelName

having table name : engine_name_model_name

it is unable to identify those, thus doesn't annotates them.

however if I inherited on of my models in an engine, it annotated it. So it may be simply doing something like ModelName.table_name and not considering the module around which it is wrapped.

Mikael Henriksson

I don't get it, this is my scenario:

I moved models into shared rails engine and now I want to update the annotations. I cd into the engines root folder and run bundle exec annotate nothing happens.

I've tried running bundle exec annotate --model-dir /absolute/path/to/rails/engine/app/models from many directories but it doesn't matter I still get Nothing annotated.. Any suggestions on how I might make it work?

Morgan Christiansson

I tried this on an engine, models work but routes annotations doesn't.

Mikael Henriksson

The fix is reverting one of the previous commits (mhenrixon@92f2bec)

Cuong Tran ctran closed this
Mikael Henriksson

Seriously? What commit closes this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.