This commit is contained in:
Gleb Mazovetskiy 2013-10-26 21:33:04 +02:00
Родитель 2b2defa365
Коммит 6fa811399d
1 изменённых файлов: 10 добавлений и 5 удалений

Просмотреть файл

@ -15,12 +15,17 @@ module Bootstrap
register_rails_engine
end
if !(rails? || compass?)
raise Bootstrap::FrameworkNotFound, "bootstrap-sass requires either Rails > 3.1 or Compass, neither of which are loaded"
unless rails? || compass?
raise Bootstrap::FrameworkNotFound,
'bootstrap-sass requires either Rails > 3.1 or Compass, neither of which are loaded'
end
bs_stylesheets = File.expand_path(File.join('..', 'vendor', 'assets', 'stylesheets'))
::Sass.load_paths << bs_stylesheets
if ::Sass::Script::Number.precision < 10
# see https://github.com/thomas-mcdonald/bootstrap-sass/issues/409
::Sass::Script::Number.precision = 10
end
stylesheets = File.expand_path(File.join("..", 'vendor', 'assets', 'stylesheets'))
::Sass.load_paths << stylesheets
end
private