Sha256: 580768775e4c111cfbeb5f37bd74849cc8dc3299958986ce61b417de02106a33
Contents?: true
Size: 397 Bytes
Versions: 3
Compression:
Stored size: 397 Bytes
Contents
class CollectionInput < SimpleForm::Inputs::CollectionInput def label_input content = "".html_safe [ :input, :error, :hint ].each do |component| next if options[component] == false rendered = send(component) content.safe_concat rendered.to_s if rendered end (options[:label] == false ? "" : label) + "<div class=\"input\">#{content}</div>".html_safe end end
Version data entries
3 entries across 3 versions & 1 rubygems