Sha256: e19fe1bd065e262003d31126eaaaae1d8a607ee30c42eac0ab1d550bbdb1f0c3
Contents?: true
Size: 446 Bytes
Versions: 3
Compression:
Stored size: 446 Bytes
Contents
class BooleanInput < SimpleForm::Inputs::BooleanInput 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\"><ul class=\"inputs-list\"><li><label>#{content}</label></li></ul></div>".html_safe end end
Version data entries
3 entries across 3 versions & 1 rubygems