From 9cf3596da50fb1c157ce1995754c1b7e810b9611 Mon Sep 17 00:00:00 2001 From: yui-knk Date: Sun, 9 Nov 2014 11:53:51 +0900 Subject: Fix comment of SourceAnnotationExtractor#find_in Commit(810af6f) changed which extensions are taken into account, so make to match comment of find_in. And sort extensions to follow the added order. --- railties/lib/rails/source_annotation_extractor.rb | 5 ++--- 1 file changed, 2 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 201532d299..9b058a1848 100644 --- a/railties/lib/rails/source_annotation_extractor.rb +++ b/railties/lib/rails/source_annotation_extractor.rb @@ -80,9 +80,8 @@ class SourceAnnotationExtractor # 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+, +.erb+, +.haml+, +.slim+, +.css+, - # +.scss+, +.js+, +.coffee+, +.rake+, +.sass+ and +.less+ - # are taken into account. + # with extension +.builder+, +.rb+, +.rake+, +.yml+, +.yaml+, +.ruby+, + # +.css+, +.js+ and +.erb+ are taken into account. def find_in(dir) results = {} -- cgit v1.2.3