Sha256: b7a3ce8578611125c77a52cf3121ac3329b38cf8e8dc819d49b41a2eb29ed205

Contents?: true

Size: 506 Bytes

Versions: 7

Compression:

Stored size: 506 Bytes

Contents

module BootstrapForms
  class Engine < ::Rails::Engine
    initializer 'bootstrap_forms.initialize' do
      config.to_prepare do
        ActiveSupport.on_load(:action_view) do
          include BootstrapForms::Helpers::FormHelper
          include BootstrapForms::Helpers::FormTagHelper
          
          # Do not wrap errors in the extra div
          ::ActionView::Base.field_error_proc = Proc.new do |html_tag, instance_tag|
            html_tag
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bootstrap_forms-2.0.6 lib/bootstrap_forms/engine.rb
bootstrap_forms-2.0.5 lib/bootstrap_forms/engine.rb
bootstrap_forms-2.0.4 lib/bootstrap_forms/engine.rb
bootstrap_forms-2.0.3 lib/bootstrap_forms/engine.rb
bootstrap_forms-2.0.2 lib/bootstrap_forms/engine.rb
bootstrap_forms-2.0.1 lib/bootstrap_forms/engine.rb
bootstrap_forms-2.0.0 lib/bootstrap_forms/engine.rb