Module: Practical::Framework::Engine::PracticalFrameworkFormBuilderActiveSupportExtension
- Defined in:
- lib/practical/framework/engine.rb
Overview
Hopefully can be removed in the future: github.com/rails/rails/issues/39522
Instance Method Summary collapse
Instance Method Details
#practical_form_with(**args, &block) ⇒ Object
18 19 20 21 22 23 24 25 26 |
# File 'lib/practical/framework/engine.rb', line 18 def practical_form_with(**args, &block) original_field_error_proc = ::ActionView::Base.field_error_proc ::ActionView::Base.field_error_proc = ->(html_tag, instance) { html_tag } content_tag(:"application-error-handling") do form_with(**args, &block) end ensure ::ActionView::Base.field_error_proc = original_field_error_proc end |