Skip to content

Commit

Permalink
Move bootstrap-sass to rails_admin namespace
Browse files Browse the repository at this point in the history
Fixes issue with breaking bootstrap-sass in app.
All tests green. App works fine now with 
bootstrap-sass master (Bootstrap 3).
  • Loading branch information
simple10 committed Oct 21, 2013
1 parent ad9e935 commit 2728c80
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/rails_admin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ def self.config(entity = nil, &block)
end
end

require 'bootstrap-sass'
require 'rails_admin/bootstrap-sass' unless defined? Bootstrap
8 changes: 4 additions & 4 deletions lib/bootstrap-sass.rb → lib/rails_admin/bootstrap-sass.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
module Bootstrap
module RailsAdmin::Bootstrap
class FrameworkNotFound < StandardError; end

# Inspired by Kaminari
def self.load!
if compass?
require 'bootstrap-sass/compass_functions'
require 'rails_admin/bootstrap-sass/compass_functions'
register_compass_extension
elsif asset_pipeline?
require 'bootstrap-sass/sass_functions'
require 'rails_admin/bootstrap-sass/sass_functions'
end

if rails?
Expand Down Expand Up @@ -43,4 +43,4 @@ def self.register_compass_extension
end
end

Bootstrap.load!
RailsAdmin::Bootstrap.load!
File renamed without changes.
File renamed without changes.

0 comments on commit 2728c80

Please sign in to comment.