-
Notifications
You must be signed in to change notification settings - Fork 598
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
annotate -r annotates more than just route.rb #306
Comments
This is due to #299. Is it just a surprise or you don't find this useful? I noted this in the release notes. |
It certainly was a surprise, since the readme indicates the -r argument annotates routes.rb with the output of 'rake routes.' My assumption would be only the route file would be affected. I should point out that the default behavior cannot be changed with respect to these new annotations' position in the file. I prefer after my code, not before. I can only speak for myself, but my preference would be to explicitly create that output and not have it happen automatically. Perhaps being able to change the default behavior would be acceptable, but for me I do not find this particularly useful. Happy New Year. |
These are no longer annotated by default (develop branch). |
Thanks, Cuong. I appreciate the work you do. |
I recently updated to 2.7.0 and upon running annotate -r, I was surprised when helpers and controllers no included annotations. I suspected the auto_annotate_models rake file was to blame, but even after marking unwanted default annotations false, it made no difference. A message saying models and routes have not changed, but controllers and their spec files and helpers had been modified.
Running Rails 4.2.5, Ruby 2.2.3
The text was updated successfully, but these errors were encountered: