Skip to content

Commit 3f5cde3

Browse files
fixes erb file not found when importing by globbing
1 parent a3b2526 commit 3f5cde3

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

lib/sass/rails/importer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ def deprecate_extra_css_extension(engine)
145145
end
146146
end
147147

148-
include Deprecated
149148
include ERB
149+
include Deprecated
150150
include Globbing
151151

152152
# Allow .css files to be @import'd
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.nested-glob-erb {
2+
color: <%= 'blue' %>;
3+
}

test/sass_rails_test.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ class SassRailsTest < Sass::Rails::TestCase
125125
assert_match /not-a-partial/, css_output
126126
assert_match /globbed/, css_output
127127
assert_match /nested-glob/, css_output
128+
assert_match /nested-glob-erb/, css_output
128129
assert_match /plain-old-css/, css_output
129130
assert_match /another-plain-old-css/, css_output
130131
assert_match /without-css-ext/, css_output

0 commit comments

Comments
 (0)