mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-04 22:16:08 +00:00
14 lines
374 B
Ruby
14 lines
374 B
Ruby
module Spree
|
|
module Admin
|
|
module GeneralSettingsHelper
|
|
def currency_options
|
|
currencies = ::Money::Currency.table.map do |_code, details|
|
|
iso = details[:iso_code]
|
|
[iso, "#{details[:name]} (#{iso})"]
|
|
end
|
|
options_from_collection_for_select(currencies, :first, :last, Spree::Config[:currency])
|
|
end
|
|
end
|
|
end
|
|
end
|