Class: EmployeePickerTomSelectInput

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

Overview

Tom Select version of EmployeePickerInput
Use as: :employee_picker_tom_select instead of :employee_picker
This uses a static collection since employees are finite

Instance Method Summary collapse

Methods inherited from TomSelectInput

#input, #input_html_classes

Instance Method Details

#collectionObject



5
6
7
# File 'app/inputs/employee_picker_tom_select_input.rb', line 5

def collection
  Employee.select_options
end