Bring general_settings_helper from spree_backend

This commit is contained in:
luisramos0
2019-09-20 14:28:59 +01:00
parent d31b50be3d
commit b83d74a609

View File

@@ -0,0 +1,13 @@
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