-
Notifications
You must be signed in to change notification settings - Fork 631
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to generate annotation for a single model #214
Comments
Please include ruby version and annotate version. |
Ruby 2.1.3 ~/.rvm/gems/ruby-2.1.3@paynearme/gems/annotate-2.6.5 |
@ctran What should the correct syntax be? Any work around. I'm dealing with an app that has 130 tables! |
Same problem, ruby v2.1.5, annotate v2.6.5. Pretty sure this is the culprit: https://github.com/ctran/annotate_models/blob/develop/lib/annotate/annotate_models.rb#L346 Hacky work-around: putting random characters in front of a real model file will run annotate on the real model, for example the following command will ignore "invalid-non-whitespace" and run on just "valid_thing.rb":
Separate problem, annotate does not seem to understand relative path names to a file e.g. app/models/valid_thing.rb is not found but valid_thing.rb is found. |
Looks like a bug. I have a fix for this. |
This works annotate app/models/valid_thing.rb |
I tried
and
and in both cases, all models are annotated.
The text was updated successfully, but these errors were encountered: