Skip to content

Commit 6e4eee7

Browse files
committed
Merge pull request #350 from craigisrael/find_erb_when_importing_glob
Find erb when importing glob
2 parents b50195e + d0fb330 commit 6e4eee7

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-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+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.nested-glob-erb-css-scss {
2+
color: <%= 'blue' %>;
3+
}

test/sass_rails_test.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ 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
129+
assert_match /nested-glob-erb-css-scss/, css_output
128130
assert_match /plain-old-css/, css_output
129131
assert_match /another-plain-old-css/, css_output
130132
assert_match /without-css-ext/, css_output

0 commit comments

Comments
 (0)