Class: ProductCategoryPickerTomSelectInput

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

Overview

Tom Select version of ProductCategoryPickerInput
Use as: :product_category_picker_tom_select instead of :product_category_picker
This uses a static collection (no AJAX) since product categories 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_category_picker_tom_select_input.rb', line 5

def collection
  ProductCategory.select_options
end