skill-assessment-app/config/initializers/custom_error_wrapper.rb

6 lines
176 B
Ruby
Raw Normal View History

2016-08-01 09:50:01 -05:00
# TODO: needs better wrapping instead of nuking
# https://rubyplus.com/articles/3401
ActionView::Base.field_error_proc = proc do |html_tag, _instance|
html_tag.html_safe
end