Sha256: 6c6c92ff27d68420a8785742a6f8ebdfb15f9083d34f0b2cd266bd51a9092779

Contents?: true

Size: 484 Bytes

Versions: 5

Compression:

Stored size: 484 Bytes

Contents

module Bootstrap
  module Rails
    class Engine < ::Rails::Engine
      initializer 'anjlab-bootstrap-rails-setup', :group => :all do |app|
        frameworks_path = File.join(config.root, 'vendor', 'frameworks')
        # rails 3.2.x
        if config.respond_to? :sass
          config.sass.load_paths << frameworks_path
        end
        # rails 4.0.x
        if config.respond_to? :assets
          config.assets.paths << frameworks_path
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
anjlab-bootstrap-rails-2.3.1.2 lib/bootstrap-rails/engine.rb
anjlab-bootstrap-rails-2.3.1.1 lib/bootstrap-rails/engine.rb
anjlab-bootstrap-rails-2.3.1.0 lib/bootstrap-rails/engine.rb
anjlab-bootstrap-rails-2.3.0.0 lib/bootstrap-rails/engine.rb
anjlab-bootstrap-rails-2.2.2.1 lib/bootstrap-rails/engine.rb