aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
authorAnnie-Claude Côté <hello@annie.codes>2018-06-22 12:43:32 -0400
committerAnnie-Claude Côté <hello@annie.codes>2018-07-04 14:30:11 -0400
commit21f7dadbffdf4532e4401f1cbfa1771a8e5750da (patch)
treedb88792eef2b40eee70e939c8656f90a2e18e23d /railties/lib
parent1996fbe2a3e46ff5698bfa3812afb7f42cdfa899 (diff)
downloadrails-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.rb2
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