Class: LedgerAccountPickerTomSelectInput

Inherits:
TomSelectInput
  • Object
show all
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

#input_html_classes

Instance Method Details

#collectionObject



10
11
12
# File 'app/inputs/ledger_account_picker_tom_select_input.rb', line 10

def collection
  LedgerAccount.
end

#input(wrapper_options = nil) ⇒ Object



5
6
7
8
# File 'app/inputs/ledger_account_picker_tom_select_input.rb', line 5

def input(wrapper_options = nil)
  input_html_options[:multiple] = true if input_html_options[:multiple].nil?
  super(wrapper_options)
end