1
0
Fork 0
mirror of https://github.com/twbs/bootstrap-sass.git synced 2022-11-09 12:27:02 -05:00

Add Sass.load_paths entry to help absolute @import paths

Nice feature added in Sass 2.3 - see nex3/sass@5c93cbfe

This should resolve thomas-mcdonald/bootstrap-sass#259 better than making users manually adding a load_paths entry.
This commit is contained in:
Tristan Harward 2012-11-19 14:26:32 -05:00
parent c281f39bde
commit 41d9219902

View file

@ -17,6 +17,8 @@ module Bootstrap
else
raise Bootstrap::FrameworkNotFound, "bootstrap-sass requires either Rails > 3.1 or Compass, neither of which are loaded"
end
stylesheets = File.expand_path(File.join("..", 'vendor', 'assets', 'stylesheets'))
Sass.load_paths << stylesheets
end
private