class SimpleForm::Inputs::CollectionSelectInput

Public Instance Methods

input(wrapper_options = nil) click to toggle source
# File lib/simple_form/inputs/collection_select_input.rb, line 5
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(
    attribute_name, collection, value_method, label_method,
    input_options, merged_input_options
  )
end