Sha256: ff81de3966767b2f1188c34f04688c63738676a4bbd077f45c584a02f261cd49
Contents?: true
Size: 516 Bytes
Versions: 3
Compression:
Stored size: 516 Bytes
Contents
module FilterInputs class BooleanInput < SimpleForm::Inputs::CollectionSelectInput def input(wrapper_options = nil) label_method, value_method = detect_collection_methods merged_input_options = merge_wrapper_options(input_html_options, wrapper_options) @builder.collection_select( filter_attribute_name, collection, value_method, label_method, input_options, merged_input_options ) end def filter_attribute_name "#{attribute_name}_eq" end end end
Version data entries
3 entries across 3 versions & 1 rubygems