diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2016-08-02 12:28:56 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-02 12:28:56 -0700 |
commit | 2762ebd84629ccc39a9959ecf15c9f82c1d283b3 (patch) | |
tree | 30703ec9361dd96053fd0db65fa2796d828f493c /guides/source/command_line.md | |
parent | 111227c0dfb72b060428063e35d865b62338654a (diff) | |
parent | 31c1ed95d33bd9a46a6a4ebb5c1e1fa2af171969 (diff) | |
download | rails-2762ebd84629ccc39a9959ecf15c9f82c1d283b3.tar.gz rails-2762ebd84629ccc39a9959ecf15c9f82c1d283b3.tar.bz2 rails-2762ebd84629ccc39a9959ecf15c9f82c1d283b3.zip |
Merge branch 'master' into retry-and-discard-jobs
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' |