Sha256: 4c695ef89182ec33f0ddc7561614ed3e373470d084563f84f9b4ad5630fb8913

Contents?: true

Size: 431 Bytes

Versions: 60

Compression:

Stored size: 431 Bytes

Contents

module Spree
  module Admin
    module CurrencyHelper
      def currency_options(selected_value = nil)
        selected_value ||= Spree::Config[:currency]
        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, selected_value)
      end
    end
  end
end

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
spree_backend-4.0.9 app/helpers/spree/admin/currency_helper.rb
spree_backend-4.1.15 app/helpers/spree/admin/currency_helper.rb
spree_backend-4.1.14 app/helpers/spree/admin/currency_helper.rb
spree_backend-4.0.8 app/helpers/spree/admin/currency_helper.rb
spree_backend-3.7.14.1 app/helpers/spree/admin/currency_helper.rb
spree_backend-4.1.13.1 app/helpers/spree/admin/currency_helper.rb
spree_backend-4.0.7.1 app/helpers/spree/admin/currency_helper.rb
spree_backend-4.0.7 app/helpers/spree/admin/currency_helper.rb
spree_backend-3.7.14 app/helpers/spree/admin/currency_helper.rb
spree_backend-4.2.0.rc5 app/helpers/spree/admin/currency_helper.rb
spree_backend-4.2.0.rc4 app/helpers/spree/admin/currency_helper.rb
spree_backend-4.2.0.rc3 app/helpers/spree/admin/currency_helper.rb
spree_backend-4.1.13 app/helpers/spree/admin/currency_helper.rb
spree_backend-4.0.6 app/helpers/spree/admin/currency_helper.rb
spree_backend-4.2.0.rc2 app/helpers/spree/admin/currency_helper.rb
spree_backend-3.7.13 app/helpers/spree/admin/currency_helper.rb
spree_backend-4.0.5 app/helpers/spree/admin/currency_helper.rb
spree_backend-4.1.12 app/helpers/spree/admin/currency_helper.rb
spree_backend-3.7.12 app/helpers/spree/admin/currency_helper.rb
spree_backend-4.2.0.rc1 app/helpers/spree/admin/currency_helper.rb