Class: CurrencyInput

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

Overview

SimpleForm input wrapper: currency.

Instance Method Summary collapse

Methods inherited from TomSelectInput

#input, #input_html_classes

Instance Method Details

#collectionObject



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

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