From 36f710f6b587239bfbd1e7d908e49d5c4267adbe Mon Sep 17 00:00:00 2001 From: Alberto Almagro Date: Sun, 1 Apr 2018 12:51:48 +0200 Subject: [ci skip] Improve #find_in documentation. The previous documentation version listed only the default registered extensions. This was misleading because if more extensions get registered with SourceAnnotationExtractor::Annotation.register_extensions, they would be also taken into account. By saying that we consider all registered extensions we document what happens in reality. --- railties/lib/rails/source_annotation_extractor.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'railties') diff --git a/railties/lib/rails/source_annotation_extractor.rb b/railties/lib/rails/source_annotation_extractor.rb index 73bee5bcbf..2407f853b6 100644 --- a/railties/lib/rails/source_annotation_extractor.rb +++ b/railties/lib/rails/source_annotation_extractor.rb @@ -95,9 +95,9 @@ module Rails end # Returns a hash that maps filenames under +dir+ (recursively) to arrays - # with their annotations. Only files with annotations are included. Files - # with extension +.builder+, +.rb+, +.rake+, +.yml+, +.yaml+, +.ruby+, - # +.css+, +.js+ and +.erb+ are taken into account. + # with their annotations. Files with extensions registered in + # Rails::SourceAnnotationExtractor::Annotation.extensions are + # taken into account. Only files with annotations are included. def find_in(dir) results = {} -- cgit v1.2.3