diff options
author | yui-knk <spiketeika@gmail.com> | 2014-11-09 11:53:51 +0900 |
---|---|---|
committer | yui-knk <spiketeika@gmail.com> | 2014-11-09 11:53:51 +0900 |
commit | 9cf3596da50fb1c157ce1995754c1b7e810b9611 (patch) | |
tree | dcf2d203eaef581f5bcedf0f2a0a51c92a2d3666 /railties/lib/rails | |
parent | 001e600619c7ec5d7535e47c5900bcad259de3f8 (diff) | |
download | rails-9cf3596da50fb1c157ce1995754c1b7e810b9611.tar.gz rails-9cf3596da50fb1c157ce1995754c1b7e810b9611.tar.bz2 rails-9cf3596da50fb1c157ce1995754c1b7e810b9611.zip |
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.
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/source_annotation_extractor.rb | 5 |
1 files changed, 2 insertions, 3 deletions
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 = {} |