Class: StateFilterPickerTomSelectInput

Inherits:
TomSelectInput
  • Object
show all
Defined in:
app/inputs/state_filter_picker_tom_select_input.rb

Instance Method Summary collapse

Methods inherited from TomSelectInput

#input_html_classes

Instance Method Details

#collectionObject



7
8
9
# File 'app/inputs/state_filter_picker_tom_select_input.rb', line 7

def collection
  State.states_for_select
end

#input(wrapper_options = nil) ⇒ Object



2
3
4
5
# File 'app/inputs/state_filter_picker_tom_select_input.rb', line 2

def input(wrapper_options = nil)
  input_html_options[:multiple] = true if input_html_options[:multiple].nil?
  super
end