diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2016-08-02 17:38:56 +0000 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2016-08-02 17:38:56 +0000 |
commit | 4d288f0b43bf262c8087f088aa6cdff570226a7e (patch) | |
tree | 14028624748e8ec977d49893cea69d2cb6ded508 /guides/source/command_line.md | |
parent | 70b995a77f3e47c24ae88509066d0cdc4b2d779e (diff) | |
parent | a11abf19ee608ab08558cc7fade0a48a5f9ed91b (diff) | |
download | rails-4d288f0b43bf262c8087f088aa6cdff570226a7e.tar.gz rails-4d288f0b43bf262c8087f088aa6cdff570226a7e.tar.bz2 rails-4d288f0b43bf262c8087f088aa6cdff570226a7e.zip |
Merge branch 'master' of github.com:rails/docrails
Diffstat (limited to 'guides/source/command_line.md')
-rw-r--r-- | guides/source/command_line.md | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/guides/source/command_line.md b/guides/source/command_line.md index 42276bcb90..9d7ecce947 100644 --- a/guides/source/command_line.md +++ b/guides/source/command_line.md @@ -497,7 +497,13 @@ app/models/article.rb: NOTE. When using specific annotations and custom annotations, the annotation name (FIXME, BUG etc) is not displayed in the output lines. -By default, `rails notes` will look in the `app`, `config`, `db`, `lib` and `test` directories. If you would like to search other directories, you can provide them as a comma separated list in an environment variable `SOURCE_ANNOTATION_DIRECTORIES`. +By default, `rails notes` will look in the `app`, `config`, `db`, `lib` and `test` directories. If you would like to search other directories, you can configure them using `config.annotations.register_directories` option. + +```ruby +config.annotations.register_directories("spec", "vendor") +``` + +You can also provide them as a comma separated list in the environment variable `SOURCE_ANNOTATION_DIRECTORIES`. ```bash $ export SOURCE_ANNOTATION_DIRECTORIES='spec,vendor' |