Skip to content

Commit 8e0d5c0

Browse files
Register scss and sass extensions for rake notes
1 parent 650bec5 commit 8e0d5c0

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## unreleased
4+
5+
* Register scss and sass extensions for rake notes
6+
37
## 4.0.1 (Oct 15, 2013)
48

59
* Remove Post Processors from asset evaluation.

lib/sass/rails/railtie.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ module SassContext
2828
# to the rails generate command
2929
config.app_generators.stylesheet_engine config.sass.preferred_syntax
3030

31+
if config.respond_to?(:annotations)
32+
config.annotations.register_extensions("scss", "sass") { |annotation| /\/\/\s*(#{annotation}):?\s*(.*)$/ }
33+
end
34+
3135
# Remove the sass middleware if it gets inadvertently enabled by applications.
3236
config.after_initialize do |app|
3337
app.config.middleware.delete(Sass::Plugin::Rack) if defined?(Sass::Plugin::Rack)

0 commit comments

Comments
 (0)