Sha256: 8601fce7ed4aa13bf0864d4309b51d586f25a0d54270631dd029923e014583d2

Contents?: true

Size: 372 Bytes

Versions: 1

Compression:

Stored size: 372 Bytes

Contents

require 'rails'
require 'action_view'
require 'formatted_form'

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
formatted_form-2.1.2 lib/formatted_form/engine.rb