Sha256: ca0211c1b734ee3c45651a61c4ed7ff51dde5931a3faa8ea53690b6e18ff87ca

Contents?: true

Size: 644 Bytes

Versions: 2

Compression:

Stored size: 644 Bytes

Contents

require 'rails'
require File.dirname(__FILE__) + '/twitter-bootstrap-breadcrumbs.rb'

module Twitter
  module Bootstrap
    module Rails
      class Engine < ::Rails::Engine

        initializer 'twitter-bootstrap-rails.setup', 
          :after => 'less-rails.after.load_config_initializers', 
          :group => :all do |app|
          app.config.less.paths << File.join(config.root, 'vendor', 'toolkit')
          end

        initializer 'twitter-bootstrap-rails.setup_helpers' do |app|
          app.config.to_prepare do
            ActionController::Base.send(:include, BreadCrumbs)
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
twitter-bootstrap-rails-2.0.5 lib/twitter/bootstrap/rails/engine.rb
twitter-bootstrap-rails-2.0.4 lib/twitter/bootstrap/rails/engine.rb