Sha256: 3de9ad7441eaa1f874b3a8690e030ff1dc4b577fbf5e195197a3144a66b218da
Contents?: true
Size: 456 Bytes
Versions: 2
Compression:
Stored size: 456 Bytes
Contents
module FormtasticRebootstrap module Inputs class ColorInput < Formtastic::Inputs::ColorInput include Base include Base::Stringish def to_html raise "The :color input requires the color_field form helper, which is only available in Rails 4+" unless builder.respond_to?(:color_field) bootstrap_wrapping do builder.color_field(method, form_control_input_html_options) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
formtastic_rebootstrap-0.0.2 | lib/formtastic_rebootstrap/inputs/color_input.rb |
formtastic_rebootstrap-0.0.1 | lib/formtastic_rebootstrap/inputs/color_input.rb |