aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorAlberto Almagro <albertoalmagro@gmail.com>2018-04-03 11:25:17 +0200
committerAlberto Almagro <albertoalmagro@gmail.com>2018-04-20 18:45:43 +0200
commitcc1ae52cfb5e2ca04cfc6c9c30de2205f72c05f3 (patch)
treedec72346d722e279df2031542b78c73f1bfcd5a7 /railties
parent36f710f6b587239bfbd1e7d908e49d5c4267adbe (diff)
downloadrails-cc1ae52cfb5e2ca04cfc6c9c30de2205f72c05f3.tar.gz
rails-cc1ae52cfb5e2ca04cfc6c9c30de2205f72c05f3.tar.bz2
rails-cc1ae52cfb5e2ca04cfc6c9c30de2205f72c05f3.zip
[ci skip] Prefix class name with Rails:: in docs
After renaming and deprecation of SourceAnnotationExtractor documentation has been updated to reflect the new name Rails::SourceAnnotationExtractor
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/source_annotation_extractor.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/lib/rails/source_annotation_extractor.rb b/railties/lib/rails/source_annotation_extractor.rb
index 2407f853b6..7257aaeaae 100644
--- a/railties/lib/rails/source_annotation_extractor.rb
+++ b/railties/lib/rails/source_annotation_extractor.rb
@@ -29,7 +29,7 @@ module Rails
end
# Registers additional directories to be included
- # SourceAnnotationExtractor::Annotation.register_directories("spec", "another")
+ # Rails::SourceAnnotationExtractor::Annotation.register_directories("spec", "another")
def self.register_directories(*dirs)
directories.push(*dirs)
end
@@ -39,7 +39,7 @@ module Rails
end
# Registers new Annotations File Extensions
- # SourceAnnotationExtractor::Annotation.register_extensions("css", "scss", "sass", "less", "js") { |tag| /\/\/\s*(#{tag}):?\s*(.*)$/ }
+ # Rails::SourceAnnotationExtractor::Annotation.register_extensions("css", "scss", "sass", "less", "js") { |tag| /\/\/\s*(#{tag}):?\s*(.*)$/ }
def self.register_extensions(*exts, &block)
extensions[/\.(#{exts.join("|")})$/] = block
end
@@ -69,7 +69,7 @@ module Rails
#
# Directories may also be explicitly set using the <tt>:dirs</tt> key in +options+.
#
- # SourceAnnotationExtractor.enumerate 'TODO|FIXME', dirs: %w(app lib), tag: true
+ # Rails::SourceAnnotationExtractor.enumerate 'TODO|FIXME', dirs: %w(app lib), tag: true
#
# If +options+ has a <tt>:tag</tt> flag, it will be passed to each annotation's +to_s+.
#