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