Skip to content
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

load :set_annotation_options before running :annotate_routes #803

Merged
merged 2 commits into from
May 18, 2020

Conversation

javawizard
Copy link
Contributor

Make annotate_routes depend on set_annotation_options just as annotate_models does.

Fixes #761.

I copied the ENV['is_cli'] check from annotate_models.rake, but I don't know what its purpose is. Feel free to tell me to get rid of it. I also moved the annotate_lib = ... bit to the top of the file to keep annotate_routes.rake consistent with annotate_models.rake.

@drwl
Copy link
Collaborator

drwl commented May 18, 2020

Hi @javawizard, I'm not sure what ENV['is_cli'] does either. Currently it looks like dead code as we're not using it in anywhere in the project.

@drwl
Copy link
Collaborator

drwl commented May 18, 2020

For the time being, let's keep it as is, and we can remove it in a future release.

Copy link
Collaborator

@drwl drwl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contributing this patch!

@drwl drwl merged commit b480742 into ctran:develop May 18, 2020
@javawizard javawizard deleted the fix-annotate-routes-rake-task-position branch July 21, 2020 07:19
javawizard added a commit to makesaltlake/heimdall that referenced this pull request Sep 20, 2020
...now that ctran/annotate_models#803 has
been merged. they still haven't cut a new release, though, so we
need to target master instead of the vanilla gem.
ocarta-l pushed a commit to ocarta-l/annotate_models that referenced this pull request Jun 18, 2021
Make `annotate_routes` depend on `set_annotation_options` just as `annotate_models` does.

Fixes ctran#761.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to annotate routes at the bottom while it works correctly for Models
2 participants