From 21f7dadbffdf4532e4401f1cbfa1771a8e5750da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Annie-Claude=20C=C3=B4t=C3=A9?= Date: Fri, 22 Jun 2018 12:43:32 -0400 Subject: 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 --- railties/lib/rails/commands/notes/notes_command.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'railties/lib/rails/commands/notes') 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 -- cgit v1.2.3