Skip to content

Commit 2cdc612

Browse files
committed
Stringify paths to unique paths correctly
The problem here is that gems like compass-sass and bootstrap-sass will build their own Importer classes that aren't being properly uniqued. Also this resolves the issue outlined in #79
1 parent 63acddc commit 2cdc612

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/sassc/rails/importer.rb

+3-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ def imports(path, parent_path)
9494
return glob_imports(base, m[2], parent_path)
9595
end
9696

97-
search_paths = ([parent_dir] + load_paths).uniq
97+
# Compass and other gems us their own special loaders
98+
# Hence making this to_s required to have a proper uniq set.
99+
search_paths = ([parent_dir] + load_paths).map(&:to_s).uniq
98100

99101
if specified_dir != "."
100102
search_paths.map! do |path|

0 commit comments

Comments
 (0)