mirror of
https://github.com/twbs/bootstrap-sass.git
synced 2022-11-09 12:27:02 -05:00
Merge branch 'rails_2_3' into 2.0.3
This commit is contained in:
commit
df308c1b3a
1 changed files with 4 additions and 4 deletions
|
@ -3,7 +3,7 @@ module Bootstrap
|
||||||
|
|
||||||
# Inspired by Kaminari
|
# Inspired by Kaminari
|
||||||
def self.load!
|
def self.load!
|
||||||
if rails?
|
if asset_pipeline?
|
||||||
require 'sass-rails' # See: https://github.com/thomas-mcdonald/bootstrap-sass/pull/4
|
require 'sass-rails' # See: https://github.com/thomas-mcdonald/bootstrap-sass/pull/4
|
||||||
require 'bootstrap-sass/engine'
|
require 'bootstrap-sass/engine'
|
||||||
require 'bootstrap-sass/config/sass_extentions'
|
require 'bootstrap-sass/config/sass_extentions'
|
||||||
|
@ -21,8 +21,8 @@ module Bootstrap
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
def self.rails?
|
def self.asset_pipeline?
|
||||||
defined?(::Rails)
|
defined?(::Rails) && ::Rails.version >= '3.1.0'
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.compass?
|
def self.compass?
|
||||||
|
@ -30,4 +30,4 @@ module Bootstrap
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
Bootstrap.load!
|
Bootstrap.load!
|
||||||
|
|
Loading…
Add table
Reference in a new issue