app/view_utils/money_view_utils.rb
def currency_opts(locale, currency)
    {
      separator: I18n.t("number.currency.format.separator", locale: locale) || ".",
      delimiter: I18n.t("number.currency.format.delimiter", locale: locale) || ",",
      format: I18n.t("number.currency.format.format", locale: locale) || "%u%n",
      digits: currency.exponent.to_i,
      symbol: currency.symbol
    }
  end
# Return a hash of currency formatting options, sets defaults if
# translations are not present
# Currency needs to be an instance of Money::Currency
Return a hash of currency formatting options, sets defaults if
translations are not present
Currency needs to be an instance of Money::Currency
Return a hash of currency formatting options sets defaults if translations are not present Currency needs to be an instance of Money :: Currency
def currency_opts(locale, currency)
    {
      separator: I18n.t("number.currency.format.separator", locale: locale) || ".",
      delimiter: I18n.t("number.currency.format.delimiter", locale: locale) || ",",
      format: I18n.t("number.currency.format.format", locale: locale) || "%u%n",
      digits: currency.exponent.to_i,
      symbol: currency.symbol
    }
  end
def currency_opts ( locale , currency ) { separator : I18n . t ( "number.currency.format.separator" , locale : locale ) || "." , delimiter : I18n . t ( "number.currency.format.delimiter" , locale : locale ) || "," , format : I18n . t ( "number.currency.format.format" , locale : locale ) || "%u%n" , digits : currency . exponent . to_i , symbol : currency . symbol } end
Return a hash of currency formatting options, sets defaults if
translations are not present
Currency needs to be an instance of Money::Currency
Return a hash of currency formatting options sets defaults if translations are not present Currency needs to be an instance of Money :: Currency
locale
currency