Skip to content

Commit b2c7d4d

Browse files
hexgnuindirect
authored andcommitted
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 4d04aa1 commit b2c7d4d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/sassc/rails/importer.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ def imports(path, parent_path)
9696
return glob_imports(base, m[2], parent_path)
9797
end
9898

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

101103
if specified_dir != "."
102104
search_paths.map! do |path|

0 commit comments

Comments
 (0)