Class: ActionAdmin::SelectListInput

Inherits:
SimpleForm::Inputs::CollectionSelectInput
  • Object
show all
Defined in:
app/inputs/action_admin/select_list_input.rb

Direct Known Subclasses

TagListInput

Instance Method Summary collapse

Instance Method Details

#input(wrapper_options) ⇒ Object



3
4
5
6
7
8
9
10
11
12
# File 'app/inputs/action_admin/select_list_input.rb', line 3

def input(wrapper_options)
  input_html_options[:data] ||= {}
  input_html_options[:data].merge!({
    select_box:  '',
    list:        true,
    placeholder: input_html_options[:placeholder]
  })

  super
end