Skip to content

Commit

Permalink
Improve readability for fieldWithErrors span tags
Browse files Browse the repository at this point in the history
  • Loading branch information
bricesanchez committed Mar 1, 2016
1 parent 9189055 commit e3125ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/refinery/core/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def refinery_inclusion!
# Wrap errors in spans
config.to_prepare do
ActionView::Base.field_error_proc = Proc.new do |html_tag, instance|
"<span class=\"fieldWithErrors\">#{html_tag}</span>".html_safe
ActionController::Base.helpers.content_tag(:span, html_tag, class: "fieldWithErrors")
end
end

Expand Down

0 comments on commit e3125ce

Please sign in to comment.