method

i18n_format_options

rails latest stable - Class: ActiveSupport::NumberHelper

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v4.0.2) is shown here.

i18n_format_options(locale, namespace = nil)
public

No documentation available.

# File activesupport/lib/active_support/number_helper.rb, line 614
    def i18n_format_options(locale, namespace = nil) #:nodoc:
      options = I18n.translate(:'number.format', locale: locale, default: {}).dup
      if namespace
        options.merge!(I18n.translate(:"number.#{namespace}.format", locale: locale, default: {}))
      end
      options
    end