Class: SimpleForm::Inputs::AutocompleteInput

Inherits:
Base
  • Object
show all
Defined in:
lib/simple_form/inputs/autocomplete_input.rb

Instance Method Summary collapse

Instance Method Details

#input(wrapper_options = nil) ⇒ Object



6
7
8
9
10
11
# File 'lib/simple_form/inputs/autocomplete_input.rb', line 6

def input(wrapper_options = nil)
  merged_input_options = merge_wrapper_options(input_html_options, wrapper_options)

  @builder.text_field(attribute_name, merged_input_options) <<
      @builder.hidden_field(attribute_name, hidden_html_options)
end