Sha256: 2c084924900684996ab471027cf32c968472594864943ad8d201997315674b1a
Contents?: true
Size: 492 Bytes
Versions: 17
Compression:
Stored size: 492 Bytes
Contents
module Locomotive class SmallCodeInput < Formtastic::Inputs::TextInput def wrapper_html_options super.tap do |opts| opts[:class] += ' code small' end end def input_wrapping(&block) template.content_tag(:li, [template.capture(&block), error_html, error_anchor, hint_html].join("\n").html_safe, wrapper_html_options ) end def error_anchor template.content_tag(:span, '', :class => 'error-anchor') end end end
Version data entries
17 entries across 17 versions & 2 rubygems