diff options
author | Prem Sichanugrist <s@sikac.hu> | 2018-02-20 12:40:58 +0900 |
---|---|---|
committer | Prem Sichanugrist <s@sikac.hu> | 2018-03-22 17:06:14 +0000 |
commit | 67cc450086ce448b492bdc9208c00234a1cdf949 (patch) | |
tree | f2eb9dfa3a21377a66a7fe9567a60b0e7a1f4f88 /railties/lib/rails/tasks | |
parent | 4c9c3ffc2e80155f31dbcf80591618ed1c858685 (diff) | |
download | rails-67cc450086ce448b492bdc9208c00234a1cdf949.tar.gz rails-67cc450086ce448b492bdc9208c00234a1cdf949.tar.bz2 rails-67cc450086ce448b492bdc9208c00234a1cdf949.zip |
Move SourceAnnotationExtractor under Rails module
This class should be under Rails module as it belongs to Rails.
Diffstat (limited to 'railties/lib/rails/tasks')
-rw-r--r-- | railties/lib/rails/tasks/annotations.rake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/lib/rails/tasks/annotations.rake b/railties/lib/rails/tasks/annotations.rake index 93bc66e2db..60bcdc5e1b 100644 --- a/railties/lib/rails/tasks/annotations.rake +++ b/railties/lib/rails/tasks/annotations.rake @@ -4,19 +4,19 @@ require "rails/source_annotation_extractor" desc "Enumerate all annotations (use notes:optimize, :fixme, :todo for focus)" task :notes do - SourceAnnotationExtractor.enumerate "OPTIMIZE|FIXME|TODO", tag: true + Rails::SourceAnnotationExtractor.enumerate "OPTIMIZE|FIXME|TODO", tag: true end namespace :notes do ["OPTIMIZE", "FIXME", "TODO"].each do |annotation| # desc "Enumerate all #{annotation} annotations" task annotation.downcase.intern do - SourceAnnotationExtractor.enumerate annotation + Rails::SourceAnnotationExtractor.enumerate annotation end end desc "Enumerate a custom annotation, specify with ANNOTATION=CUSTOM" task :custom do - SourceAnnotationExtractor.enumerate ENV["ANNOTATION"] + Rails::SourceAnnotationExtractor.enumerate ENV["ANNOTATION"] end end |