Skip to content

Make it possible to annotate models and routes together #647

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 3 commits into from
Sep 3, 2019

Conversation

drwl
Copy link
Collaborator

@drwl drwl commented Sep 3, 2019

Prior to this change, Annotate.include_models? returned the inverse of Annotate.include_routes?. This made it so annotating models and routes was not possible to do together.

This PR adds an explicit --models flag and also adds it the option to lib/generators/annotate/templates/auto_annotate_models.rake with the default being set to false.

Fixes #563 and undoes the bug introduced in #485.

@drwl drwl changed the title [WIP] Drwl/add models flag 563 Add --models flag to fix #563 Sep 3, 2019
@drwl drwl changed the title Add --models flag to fix #563 Add --models flag to fix issue 563 Sep 3, 2019
@drwl drwl added this to the v3.0.0 milestone Sep 3, 2019
@drwl drwl changed the title Add --models flag to fix issue 563 Make it possible to annotate models and routes together Sep 3, 2019
@drwl drwl merged commit 846c7f8 into develop Sep 3, 2019
@drwl drwl deleted the drwl/add-models-flag-563 branch September 3, 2019 01:01
peterfication pushed a commit to store2be/annotate_models that referenced this pull request Jan 20, 2020
Prior to this change, `Annotate.include_models?` returned the inverse of `Annotate.include_routes?`. This made it so annotating models and routes was not possible to do together.

This PR adds an explicit `--models` flag and also adds it the option to `lib/generators/annotate/templates/auto_annotate_models.rake` with the default being set to `false`. 

Fixes ctran#563 and undoes the bug introduced in ctran#485.
vfonic pushed a commit to vfonic/annotate_models that referenced this pull request May 8, 2020
Prior to this change, `Annotate.include_models?` returned the inverse of `Annotate.include_routes?`. This made it so annotating models and routes was not possible to do together.

This PR adds an explicit `--models` flag and also adds it the option to `lib/generators/annotate/templates/auto_annotate_models.rake` with the default being set to `false`. 

Fixes ctran#563 and undoes the bug introduced in ctran#485.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bundle exec annotate doesn't run on models, just routes
1 participant