Class: PrimarySalesRepPickerInput
- Inherits:
-
TomSelectInput
- Object
- SimpleForm::Inputs::CollectionSelectInput
- TomSelectInput
- PrimarySalesRepPickerInput
show all
- Defined in:
- app/inputs/primary_sales_rep_picker_input.rb
Overview
SimpleForm input wrapper: primary sales rep picker.
Instance Method Summary
collapse
#input, #input_html_classes
Instance Method Details
#collection ⇒ Object
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
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
|