Skip to content

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 Sep 3, 2019
@drwl drwl changed the title Add --models flag to fix #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 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants