Class: PrimarySalesRepPickerInput

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

Instance Method Summary collapse

Methods inherited from TomSelectInput

#input, #input_html_classes

Instance Method Details

#collectionObject



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

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

#show_working_status?Boolean

Returns:

  • (Boolean)


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

def show_working_status?
  input_html_options[:show_working_status].to_b
end