diff --git a/lib/select2-bootstrap-css.rb b/lib/select2-bootstrap-css.rb index 3ba0a24..6410b0b 100644 --- a/lib/select2-bootstrap-css.rb +++ b/lib/select2-bootstrap-css.rb @@ -1,11 +1,15 @@ -require 'compass' +begin + require 'compass' -module Select2 - module Bootstrap - def self.base_directory - File.expand_path('../../compass', __FILE__) + module Select2 + module Bootstrap + def self.base_directory + File.expand_path('../../compass', __FILE__) + end end end -end -Compass::Frameworks.register 'select2-bootstrap', :path => Select2::Bootstrap.base_directory \ No newline at end of file + Compass::Frameworks.register 'select2-bootstrap', :path => Select2::Bootstrap.base_directory +rescue LoadError + # We don't need compass +end