Sha256: 0dd2252b3a190a2ea52f39b9490ab07274c79a40d229a7783b422731bc88feb4

Contents?: true

Size: 367 Bytes

Versions: 16

Compression:

Stored size: 367 Bytes

Contents

require "bootstrap_builder"
require "rails"

module BootstrapBuilder
  class Engine < Rails::Engine
    
    initializer 'helper' do |app|
      ActionView::Base.send(:include, BootstrapBuilder::Helper)
      
      # Remove field_with_errors div around elements with errors
      ActionView::Base.field_error_proc = proc { |input, instance| input }
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
bootstrap_builder-0.4.0 lib/bootstrap_builder/engine.rb
bootstrap_builder-0.3.3 lib/bootstrap_builder/engine.rb
bootstrap_builder-0.3.2 lib/bootstrap_builder/engine.rb
bootstrap_builder-0.3.1 lib/bootstrap_builder/engine.rb
bootstrap_builder-0.3.0 lib/bootstrap_builder/engine.rb
bootstrap_builder-0.2.6 lib/bootstrap_builder/engine.rb
bootstrap_builder-0.2.5 lib/bootstrap_builder/engine.rb
bootstrap_builder-0.2.4 lib/bootstrap_builder/engine.rb
bootstrap_builder-0.2.3 lib/bootstrap_builder/engine.rb
bootstrap_builder-0.2.2 lib/bootstrap_builder/engine.rb
bootstrap_builder-0.2.1 lib/bootstrap_builder/engine.rb
bootstrap_builder-0.2.0 lib/bootstrap_builder/engine.rb
bootstrap_builder-0.1.2 lib/bootstrap_builder/engine.rb
bootstrap_builder-0.1.1 lib/bootstrap_builder/engine.rb
bootstrap_builder-0.1.0 lib/bootstrap_builder/engine.rb
bootstrap_builder-0.0.0 lib/bootstrap_builder/engine.rb