refs #409 min number precision: 10
This commit is contained in:
Родитель
2b2defa365
Коммит
6fa811399d
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче