diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2019-04-15 17:46:07 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-15 17:46:07 -0400 |
commit | 81c8f18d849a1538c4b838187280a572a5ff15e8 (patch) | |
tree | b08b98c9fb8b28ea7286af087ea4e82643de49fb /guides/source | |
parent | c2fcc6ac18f102d7650a416ec87bd65db6078a9d (diff) | |
parent | 6463cc05730d25ef591fd361a67ac10a1884c3de (diff) | |
download | rails-81c8f18d849a1538c4b838187280a572a5ff15e8.tar.gz rails-81c8f18d849a1538c4b838187280a572a5ff15e8.tar.bz2 rails-81c8f18d849a1538c4b838187280a572a5ff15e8.zip |
Merge pull request #35906 from yoones/notes-tags-registration
Notes tags registration
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/command_line.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/guides/source/command_line.md b/guides/source/command_line.md index a83724f1bb..0091271363 100644 --- a/guides/source/command_line.md +++ b/guides/source/command_line.md @@ -481,6 +481,22 @@ lib/school.rb: * [ 17] [FIXME] ``` +#### Tags + +You can add more default tags to search for by using `config.annotations.register_tags`. It receives a list of tags. + +```ruby +config.annotations.register_tags("DEPRECATEME", "TESTME") +``` + +```bash +$ rails notes +app/controllers/admin/users_controller.rb: + * [ 20] [TODO] do A/B testing on this + * [ 42] [TESTME] this needs more functional tests + * [132] [DEPRECATEME] ensure this method is deprecated in next release +``` + #### Directories You can add more default directories to search from by using `config.annotations.register_directories`. It receives a list of directory names. |