Class: PrimarySalesRepPickerInput

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

Overview

SimpleForm input wrapper: primary sales rep picker.

Instance Method Summary collapse

Methods inherited from TomSelectInput

#input, #input_html_classes

Instance Method Details

#collectionObject



4
5
6
# File 'app/inputs/primary_sales_rep_picker_input.rb', line 4

def collection
  Employee.primary_sales_rep_options_for_select(show_working_status: show_working_status?)
end

#show_working_status?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'app/inputs/primary_sales_rep_picker_input.rb', line 8

def show_working_status?
  input_html_options[:show_working_status].to_b
end