lib/formtastic/inputs/base/errors.rb in formtastic-4.0.0 vs lib/formtastic/inputs/base/errors.rb in formtastic-5.0.0
- old
+ new
@@ -1,12 +1,13 @@
+# frozen_string_literal: true
module Formtastic
module Inputs
module Base
module Errors
def error_html
- errors? ? send(:"error_#{builder.inline_errors}_html") : ""
+ errors? ? send(:"error_#{builder.inline_errors}_html") : +""
end
def error_sentence_html
error_class = builder.default_inline_error_class
template.content_tag(:p, errors.to_sentence, :class => error_class)
@@ -25,10 +26,10 @@
error_class = builder.default_inline_error_class
template.content_tag(:p, errors.first.untaint.html_safe, :class => error_class)
end
def error_none_html
- ""
+ +""
end
def errors?
!errors.blank?
end