Skip to content

Commit

Permalink
Merge pull request twbs#106 from htanata/rails_2_3
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-mcdonald committed Apr 8, 2012
2 parents 85e4cbd + 711f3b3 commit 644623a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/bootstrap-sass.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class FrameworkNotFound < StandardError; end

# Inspired by Kaminari
def self.load!
if rails?
if rails_asset_pipeline?
require 'sass-rails' # See: https://github.com/thomas-mcdonald/bootstrap-sass/pull/4
require 'bootstrap-sass/engine'
require 'bootstrap-sass/config/sass_extentions'
Expand All @@ -21,13 +21,13 @@ def self.load!
end

private
def self.rails?
defined?(::Rails)
def self.rails_asset_pipeline?
defined?(::Rails) && ::Rails.version >= '3.1.0'
end

def self.compass?
defined?(::Compass)
end
end

Bootstrap.load!
Bootstrap.load!

0 comments on commit 644623a

Please sign in to comment.