class FakeSelectInput < SimpleForm::Inputs::CollectionSelectInput
  def input(wrapper_options = nil) # rubocop:disable Metrics/AbcSize
    label_method, value_method = detect_collection_methods

    merged_input_options = merge_wrapper_options(
      input_html_options, wrapper_options
    ).merge(input_options.slice(:multiple, :include_blank, :disabled, :prompt))

    template.select_tag(
      attribute_name,
      template.options_from_collection_for_select(
        collection, value_method, label_method, selected: input_options[:selected], disabled: input_options[:disabled]
      ),
      merged_input_options
    )
  end
end
