diff options
author | robertomiranda <rjmaltamar@gmail.com> | 2014-03-14 17:51:14 -0500 |
---|---|---|
committer | robertomiranda <rjmaltamar@gmail.com> | 2014-03-14 17:51:14 -0500 |
commit | f43421cb65da635988f2bb5341d519c3c2748b74 (patch) | |
tree | 924ea8e94325e3af19243ac1d3076555126501ee /railties/lib | |
parent | 810af6f6ee62d76e9ed529d93ea9686a45e5a81e (diff) | |
download | rails-f43421cb65da635988f2bb5341d519c3c2748b74.tar.gz rails-f43421cb65da635988f2bb5341d519c3c2748b74.tar.bz2 rails-f43421cb65da635988f2bb5341d519c3c2748b74.zip |
Supporting .ruby, .yml and .yaml Extension in Rake Notes
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/source_annotation_extractor.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/source_annotation_extractor.rb b/railties/lib/rails/source_annotation_extractor.rb index b5f1ca1602..af6d90b5bd 100644 --- a/railties/lib/rails/source_annotation_extractor.rb +++ b/railties/lib/rails/source_annotation_extractor.rb @@ -28,7 +28,7 @@ class SourceAnnotationExtractor self.extensions[/\.(#{extensions.join("|")})$/] = block end - register_extensions("builder", "rb", "rake") { |tag| /#\s*(#{tag}):?\s*(.*)$/ } + register_extensions("builder", "rb", "rake", "yml", "yaml", "ruby") { |tag| /#\s*(#{tag}):?\s*(.*)$/ } register_extensions("css", "js") { |tag| /\/\/\s*(#{tag}):?\s*(.*)$/ } register_extensions("erb") { |tag| /<%\s*#\s*(#{tag}):?\s*(.*?)\s*%>/ } |