mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-09 23:06:06 +00:00
18 lines
459 B
Ruby
18 lines
459 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
|
|
|
|
def all_units
|
|
["g", "oz", "lb", "kg", "T", "mL", "L", "kL"]
|
|
end
|
|
end
|
|
end
|
|
end
|