Class: BusinessUnitPickerTomSelectInput

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

Overview

Tom Select version of BusinessUnitPickerInput
Use as: :business_unit_picker_tom_select instead of :business_unit_picker
This uses a static collection since business units are finite

Instance Method Summary collapse

Methods inherited from TomSelectInput

#input, #input_html_classes

Instance Method Details

#collectionObject



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

def collection
  BusinessUnit.select_options
end