Class: LedgerAccountPickerTomSelectInput
- Inherits:
-
TomSelectInput
- Object
- SimpleForm::Inputs::CollectionSelectInput
- TomSelectInput
- LedgerAccountPickerTomSelectInput
- Defined in:
- app/inputs/ledger_account_picker_tom_select_input.rb
Overview
Tom Select version of LedgerAccountPickerInput
Use as: :ledger_account_picker_tom_select instead of :ledger_account_picker
This uses a static collection since ledger accounts are finite
Instance Method Summary collapse
Methods inherited from TomSelectInput
Instance Method Details
#collection ⇒ Object
10 11 12 |
# File 'app/inputs/ledger_account_picker_tom_select_input.rb', line 10 def collection LedgerAccount.select_account end |
#input(wrapper_options = nil) ⇒ Object
5 6 7 8 |
# File 'app/inputs/ledger_account_picker_tom_select_input.rb', line 5 def input( = nil) [:multiple] = true if [:multiple].nil? super() end |