Public Instance methods
call(tags, input)
[show source]
# File lib/forme/bs5.rb 15 def call(tags, input) 16 attr = input.opts[:error_attr] 17 attr = attr ? attr.dup : {} 18 19 unless attr[:class] && attr[:class].include?("invalid-tooltip") 20 Forme.attr_classes(attr, "invalid-feedback") 21 end 22 23 attr[:id] ||= input.opts[:error_id] 24 25 [tags, input.tag(:div, attr, input.opts[:error])] 26 end