Class: CurrencyInput

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

Instance Method Summary collapse

Methods inherited from TomSelectInput

#input, #input_html_classes

Instance Method Details

#collectionObject



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

def collection
  Money::Currency.table.collect {|k,v| ["#{v[:iso_code]} - #{v[:name]} (#{v[:symbol]})",v[:iso_code]] }.sort
end