diff options
author | Younes SERRAJ <younes.serraj@gmail.com> | 2019-04-09 10:00:21 +0200 |
---|---|---|
committer | Younes SERRAJ <younes.serraj@gmail.com> | 2019-04-12 08:55:42 +0200 |
commit | 6463cc05730d25ef591fd361a67ac10a1884c3de (patch) | |
tree | 0d2210a87fb3d68ba4810be9724a77521f263f47 /guides | |
parent | 63ca58ae7bbafa0983ed8968ea6310ef33956261 (diff) | |
download | rails-6463cc05730d25ef591fd361a67ac10a1884c3de.tar.gz rails-6463cc05730d25ef591fd361a67ac10a1884c3de.tar.bz2 rails-6463cc05730d25ef591fd361a67ac10a1884c3de.zip |
Adds `register_tags`
Diffstat (limited to 'guides')
-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. |