aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2019-07-22 12:21:07 -0400
committerGitHub <noreply@github.com>2019-07-22 12:21:07 -0400
commitfb08b7ed2112d2f5b1da74dd9317df17d105992f (patch)
treee0af590d53147e7f82601d2e8211adac758df345 /railties/lib
parent2af445c3118f7f22b8c28bf2287b193a647bbb10 (diff)
parent426d2f2502780635ca56c09a5aeb0829dd9212ee (diff)
downloadrails-fb08b7ed2112d2f5b1da74dd9317df17d105992f.tar.gz
rails-fb08b7ed2112d2f5b1da74dd9317df17d105992f.tar.bz2
rails-fb08b7ed2112d2f5b1da74dd9317df17d105992f.zip
Merge pull request #36726 from Edouard-chin/ec-source-annotation-extractor-deprecation
Move the deprecation call after the new class has been defined:
Diffstat (limited to 'railties/lib')
-rw-r--r--railties/lib/rails/source_annotation_extractor.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/railties/lib/rails/source_annotation_extractor.rb b/railties/lib/rails/source_annotation_extractor.rb
index 9ce22b96a6..77a99036ec 100644
--- a/railties/lib/rails/source_annotation_extractor.rb
+++ b/railties/lib/rails/source_annotation_extractor.rb
@@ -2,11 +2,6 @@
require "active_support/deprecation"
-# Remove this deprecated class in the next minor version
-#:nodoc:
-SourceAnnotationExtractor = ActiveSupport::Deprecation::DeprecatedConstantProxy.
- new("SourceAnnotationExtractor", "Rails::SourceAnnotationExtractor")
-
module Rails
# Implements the logic behind <tt>Rails::Command::NotesCommand</tt>. See <tt>rails notes --help</tt> for usage information.
#
@@ -160,3 +155,8 @@ module Rails
end
end
end
+
+# Remove this deprecated class in the next minor version
+#:nodoc:
+SourceAnnotationExtractor = ActiveSupport::Deprecation::DeprecatedConstantProxy.
+ new("SourceAnnotationExtractor", "Rails::SourceAnnotationExtractor")