aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorAlberto Almagro <albertoalmagro@gmail.com>2018-04-01 12:51:48 +0200
committerAlberto Almagro <albertoalmagro@gmail.com>2018-04-20 18:45:19 +0200
commit36f710f6b587239bfbd1e7d908e49d5c4267adbe (patch)
tree47cd199ab8f3b8b57efc589c993691fbcb2338c6 /railties
parent248197370c8cc30adf1c2366aea58db6dfb3619b (diff)
downloadrails-36f710f6b587239bfbd1e7d908e49d5c4267adbe.tar.gz
rails-36f710f6b587239bfbd1e7d908e49d5c4267adbe.tar.bz2
rails-36f710f6b587239bfbd1e7d908e49d5c4267adbe.zip
[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 <tt>SourceAnnotationExtractor::Annotation.register_extensions</tt>, they would be also taken into account. By saying that we consider all registered extensions we document what happens in reality.
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 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
+ # <tt>Rails::SourceAnnotationExtractor::Annotation.extensions</tt> are
+ # taken into account. Only files with annotations are included.
def find_in(dir)
results = {}