Sha256: 822e5549d08d69768989e5915775157097a571f9ff754c47a149875ac813cccd
Contents?: true
Size: 1021 Bytes
Versions: 1
Compression:
Stored size: 1021 Bytes
Contents
require 'bh/helpers/alert_helper' require 'bh/helpers/cdn_helper' require 'bh/helpers/form_for_helper' require 'bh/helpers/glyphicon_helper' require 'bh/helpers/modal_helper' require 'bh/helpers/nav_helper' require 'bh/helpers/panel_helper' require 'bh/helpers/panel_row_helper' require 'bh/helpers/url_helper' module Bh class Railtie < Rails::Railtie initializer 'bh.add_helpers' do ActionView::Base.send :include, AlertHelper ActionView::Base.send :include, CdnHelper ActionView::Base.send :include, FormForHelper ActionView::Base.send :include, GlyphiconHelper ActionView::Base.send :include, ModalHelper ActionView::Base.send :include, NavHelper ActionView::Base.send :include, PanelHelper ActionView::Base.send :include, PanelRowHelper ActionView::Base.send :include, UrlHelper end initializer 'bh.add_views' do |app| views_path = File.dirname(__FILE__) + "/views" ActionController::Base.prepend_view_path views_path end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bh-0.0.7 | lib/bh/railtie.rb |