Sha256: 34ddf0dc6211708bbf6eb0eefeb5d196193fd14f9ce2150383e22a90b3884cc6
Contents?: true
Size: 759 Bytes
Versions: 1
Compression:
Stored size: 759 Bytes
Contents
module FormtasticBootstrap module Inputs class SelectInput < Formtastic::Inputs::SelectInput include Base include Base::Collections def select_html builder.select(input_name, collection, input_options, form_control_input_html_options) end def grouped_select_html builder.grouped_collection_select( input_name, grouped_collection, group_association, group_label_method, value_method, label_method, input_options, form_control_input_html_options ) end def to_html bootstrap_wrapping do options[:group_by] ? grouped_select_html : select_html end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
formtastic-bootstrap-3.1.0 | lib/formtastic-bootstrap/inputs/select_input.rb |