Sha256: 2d38007dcc1bf640b3bc47b3768d2fdd543221e183cb51220a5686b519e5675e
Contents?: true
Size: 1.3 KB
Versions: 3
Compression:
Stored size: 1.3 KB
Contents
require 'rails' require 'json' require_relative '../../app/helpers/railsstrap/breadcrumbs.rb' require_relative '../../app/helpers/railsstrap/breadcrumbs_helper.rb' require_relative '../../app/helpers/railsstrap/modal_helper.rb' require_relative '../../app/helpers/railsstrap/navbar_helper.rb' require_relative '../../app/helpers/railsstrap/bootstrap_flash_helper.rb' require_relative '../../app/helpers/railsstrap/form_errors_helper.rb' module Railsstrap class Engine < ::Rails::Engine initializer 'railsstrap.setup', :group => :all do |app| bowerrc = File.read(File.join(config.root, '.bowerrc')) app.config.assets.paths << File.join(bowerrc['directory']) end initializer 'railsstrap.setup_helpers' do |app| app.config.to_prepare do ActionController::Base.send :include, Railsstrap::Breadcrumbs end [Railsstrap::BootstrapFlashHelper, Railsstrap::FormErrorsHelper, Railsstrap::ModalHelper, Railsstrap::GlyphHelper, Railsstrap::IconHelper, Railsstrap::NavbarHelper, Railsstrap::BadgeLabelHelper].each do |h| app.config.to_prepare do ActionController::Base.send :helper, h end end ActionView::Helpers::FormBuilder.send :include, Railsstrap::FormErrorsHelper end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
railsstrap-3.3.0 | lib/railsstrap/engine.rb |
railsstrap-3.2.0.3 | lib/railsstrap/engine.rb |
railsstrap-3.2.0.2 | lib/railsstrap/engine.rb |