Sha256: bba017781893b8eca77ec8e9dae3bd303062d429f9cf57e2e1eed962e1117f77
Contents?: true
Size: 452 Bytes
Versions: 3
Compression:
Stored size: 452 Bytes
Contents
class NumericInput < SimpleForm::Inputs::NumericInput 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 def input_html_classes super.unshift("xxlarge") end end
Version data entries
3 entries across 3 versions & 1 rubygems