From 1a0bcc3b49e05eba852912f609a20c36a9656857 Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Fri, 20 Jul 2018 13:19:10 +0900 Subject: Fix deprecation message for `SOURCE_ANNOTATION_DIRECTORIES` Also, added a test that a deprecated message will be output. --- railties/lib/rails/commands/notes/notes_command.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (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 a0faaeff8f..64b339b3cd 100644 --- a/railties/lib/rails/commands/notes/notes_command.rb +++ b/railties/lib/rails/commands/notes/notes_command.rb @@ -28,7 +28,7 @@ module Rails def deprecation_warning return if source_annotation_directories.empty? - ActiveSupport::Deprecation.warn("`SOURCE_ANNOTATION_DIRECTORIES` will be deprecated in Rails 6.1. You can add default directories by using config.annotations.register_directories instead.") + ActiveSupport::Deprecation.warn("`SOURCE_ANNOTATION_DIRECTORIES` is deprecated and will be removed in Rails 6.1. You can add default directories by using config.annotations.register_directories instead.") end def source_annotation_directories -- cgit v1.2.3