diff options
author | Annie-Claude Côté <hello@annie.codes> | 2018-06-22 12:43:32 -0400 |
---|---|---|
committer | Annie-Claude Côté <hello@annie.codes> | 2018-07-04 14:30:11 -0400 |
commit | 21f7dadbffdf4532e4401f1cbfa1771a8e5750da (patch) | |
tree | db88792eef2b40eee70e939c8656f90a2e18e23d /railties/lib | |
parent | 1996fbe2a3e46ff5698bfa3812afb7f42cdfa899 (diff) | |
download | rails-21f7dadbffdf4532e4401f1cbfa1771a8e5750da.tar.gz rails-21f7dadbffdf4532e4401f1cbfa1771a8e5750da.tar.bz2 rails-21f7dadbffdf4532e4401f1cbfa1771a8e5750da.zip |
Adds support to register directories and extensions to NotesCommand
* Require the application and environnement in the notes command in order to load the config files
* Adds tests for both register_directories and register_extensions added to a config file
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/commands/notes/notes_command.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/lib/rails/commands/notes/notes_command.rb b/railties/lib/rails/commands/notes/notes_command.rb index 8895cb0707..a0faaeff8f 100644 --- a/railties/lib/rails/commands/notes/notes_command.rb +++ b/railties/lib/rails/commands/notes/notes_command.rb @@ -8,6 +8,8 @@ module Rails class_option :annotations, aliases: "-a", desc: "Filter by specific annotations, e.g. Foobar TODO", type: :array, default: %w(OPTIMIZE FIXME TODO) def perform(*) + require_application_and_environment! + deprecation_warning display_annotations end |