Class: ProductLinePickerTomSelectInput

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

Overview

Tom Select version of ProductLinePickerInput
Use as: :product_line_picker_tom_select instead of :product_line_picker
This uses a static collection (no AJAX) since product lines are finite

Instance Method Summary collapse

Methods inherited from TomSelectInput

#input, #input_html_classes

Instance Method Details

#collectionObject



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

def collection
  ProductLine.select_options
end