Sha256: 3e8b0fa133e67d35a19d8779145f51fc9ca35624e71b022cbeca685f57d89d5b
Contents?: true
Size: 454 Bytes
Versions: 1
Compression:
Stored size: 454 Bytes
Contents
require "formatted_form" require "rails" module FormattedForm class Engine < Rails::Engine initializer 'formatted_form_helper' do |app| ActionView::Base.send(:include, FormattedForm::Helper) # Removing field_with_errors div araound elemetns with errors if FormattedForm.config.template == :twitter_bootstrap ActionView::Base.field_error_proc = proc { |input, instance| input } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
formatted_form-1.1.0 | lib/formatted_form/engine.rb |