aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
authorrobertomiranda <rjmaltamar@gmail.com>2014-03-14 15:34:24 -0500
committerrobertomiranda <rjmaltamar@gmail.com>2014-03-14 17:39:04 -0500
commit810af6f6ee62d76e9ed529d93ea9686a45e5a81e (patch)
tree43aae4c06abf8fd52c3652b0308e0e117808179c /railties/lib
parenta2fb164a4fadf0f34055089b75ef9077bded8524 (diff)
downloadrails-810af6f6ee62d76e9ed529d93ea9686a45e5a81e.tar.gz
rails-810af6f6ee62d76e9ed529d93ea9686a45e5a81e.tar.bz2
rails-810af6f6ee62d76e9ed529d93ea9686a45e5a81e.zip
Remove .scss, .sass, .less, .haml, .slim, coffee from Rake Notes. Now we have an API for register it in the corresponding gems
Diffstat (limited to 'railties/lib')
-rw-r--r--railties/lib/rails/source_annotation_extractor.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/railties/lib/rails/source_annotation_extractor.rb b/railties/lib/rails/source_annotation_extractor.rb
index 5863ad1ed7..b5f1ca1602 100644
--- a/railties/lib/rails/source_annotation_extractor.rb
+++ b/railties/lib/rails/source_annotation_extractor.rb
@@ -28,11 +28,9 @@ class SourceAnnotationExtractor
self.extensions[/\.(#{extensions.join("|")})$/] = block
end
- register_extensions("builder", "rb", "coffe", "rake") { |tag| /#\s*(#{tag}):?\s*(.*)$/ }
- register_extensions("css", "scss", "sass", "less", "js") { |tag| /\/\/\s*(#{tag}):?\s*(.*)$/ }
+ register_extensions("builder", "rb", "rake") { |tag| /#\s*(#{tag}):?\s*(.*)$/ }
+ register_extensions("css", "js") { |tag| /\/\/\s*(#{tag}):?\s*(.*)$/ }
register_extensions("erb") { |tag| /<%\s*#\s*(#{tag}):?\s*(.*?)\s*%>/ }
- register_extensions("haml") { |tag| /-\s*#\s*(#{tag}):?\s*(.*)$/ }
- register_extensions("slim") { |tag| /\/\s*\s*(#{tag}):?\s*(.*)$/ }
# Returns a representation of the annotation that looks like this:
#