Sha256: c807397cb2cbe9216db9d228002d0a62ea70f0ae9619e1ea8f06f363662f34bb

Contents?: true

Size: 1006 Bytes

Versions: 12

Compression:

Stored size: 1006 Bytes

Contents

require 'rails'

require File.dirname(__FILE__) + '/twitter-bootstrap-breadcrumbs.rb'
require File.dirname(__FILE__) + '/../../../../app/helpers/flash_block_helper.rb'
require File.dirname(__FILE__) + '/../../../../app/helpers/modal_helper.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
            ActionController::Base.send :helper, FlashBlockHelper
            ActionController::Base.send :helper, ModalHelper
            #ActionController::Base.send :helper_method, :render_breadcrumbs
          end
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 4 rubygems

Version Path
rbootstrap-1.1.2 lib/twitter/bootstrap/rails/engine.rb
twitter-bootstrap-rails-2.1.6 lib/twitter/bootstrap/rails/engine.rb
twitter-bootstrap-rails-2.1.5 lib/twitter/bootstrap/rails/engine.rb
twitter-bootstrap-rails-2.1.4 lib/twitter/bootstrap/rails/engine.rb
twitter-bootstrap-turbo-2.1.3 lib/twitter/bootstrap/rails/engine.rb
cf-twitter-bootstrap-rails-2.1.3 lib/twitter/bootstrap/rails/engine.rb
twitter-bootstrap-rails-2.1.3 lib/twitter/bootstrap/rails/engine.rb
twitter-bootstrap-rails-2.1.2 lib/twitter/bootstrap/rails/engine.rb
twitter-bootstrap-rails-2.1.1 lib/twitter/bootstrap/rails/engine.rb
twitter-bootstrap-rails-2.1.0 lib/twitter/bootstrap/rails/engine.rb
twitter-bootstrap-rails-2.0.9 lib/twitter/bootstrap/rails/engine.rb
twitter-bootstrap-rails-2.0.8 lib/twitter/bootstrap/rails/engine.rb