Sha256: ed695409df2eed80b4595059d30b102960ec265db8152fb69281c73514951779
Contents?: true
Size: 784 Bytes
Versions: 7
Compression:
Stored size: 784 Bytes
Contents
require 'bh/core_ext/rails/form_for_helper' module Bh module Extensions # Makes Bootstrap helpers available in Rails applications. # # To use Bh in a Rails app you need 1 step: # # - include bh in the Gemfile # # The current class is loaded during the initialization process, so # there is no need to manually require any other file. class Railtie < ::Rails::Railtie initializer 'bh.add_helpers' do ActionView::Base.send :include, Bh::Helpers ActionView::Base.send :include, Bh::Rails::Helpers end initializer 'bh.add_views' do |app| views_path = File.expand_path '../../views', __FILE__ ActionController::Base.prepend_view_path views_path end end end Bh.framework = :rails end
Version data entries
7 entries across 7 versions & 1 rubygems