Sha256: b4caa2d9d0996c5b0b7070ffbdb191ffc13f97a2962a5b7685a8ce1d3a8b13d6
Contents?: true
Size: 1.36 KB
Versions: 5
Compression:
Stored size: 1.36 KB
Contents
require 'rails' require File.dirname(__FILE__) + '/breadcrumbs.rb' require File.dirname(__FILE__) + '/../../../../app/helpers/flash_block_helper.rb' require File.dirname(__FILE__) + '/../../../../app/helpers/modal_helper.rb' require File.dirname(__FILE__) + '/../../../../app/helpers/navbar_helper.rb' require File.dirname(__FILE__) + '/../../../../app/helpers/bootstrap_flash_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| if defined?(Less) app.config.less.paths << File.join(config.root, 'vendor', 'toolkit') end 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, BootstrapFlashHelper ActionController::Base.send :helper, ModalHelper ActionController::Base.send :helper, NavbarHelper ActionController::Base.send :helper, BadgeLabelHelper #ActionController::Base.send :helper_method, :render_breadcrumbs end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems