aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/command_line.md
diff options
context:
space:
mode:
authorYounes SERRAJ <younes.serraj@gmail.com>2019-04-09 10:00:21 +0200
committerYounes SERRAJ <younes.serraj@gmail.com>2019-04-12 08:55:42 +0200
commit6463cc05730d25ef591fd361a67ac10a1884c3de (patch)
tree0d2210a87fb3d68ba4810be9724a77521f263f47 /guides/source/command_line.md
parent63ca58ae7bbafa0983ed8968ea6310ef33956261 (diff)
downloadrails-6463cc05730d25ef591fd361a67ac10a1884c3de.tar.gz
rails-6463cc05730d25ef591fd361a67ac10a1884c3de.tar.bz2
rails-6463cc05730d25ef591fd361a67ac10a1884c3de.zip
Adds `register_tags`
Diffstat (limited to 'guides/source/command_line.md')
-rw-r--r--guides/source/command_line.md16
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.