Sha256: b07497439f7fc728e9b97903eb9427e092b6933eb3bb1f05fdf32029ce18294d
Contents?: true
Size: 520 Bytes
Versions: 132
Compression:
Stored size: 520 Bytes
Contents
module SimpleForm module Components module Errors def error_text begin if object.errors.details[attribute_name].map(&:values).flatten.include? :blank return end rescue StandardError => e pg_err e end text = has_custom_error? ? options[:error] : errors.reject(&:empty?).send(error_method) return if text.blank? "#{html_escape(options[:error_prefix])} #{html_escape(text)}".lstrip.html_safe end end end end
Version data entries
132 entries across 132 versions & 1 rubygems