Sha256: 3cea835fba6f158f7654031a27ad04680d66dbe451ddfe880b68242ac9668f6b
Contents?: true
Size: 435 Bytes
Versions: 63
Compression:
Stored size: 435 Bytes
Contents
ActiveSupport::Deprecation.warn 'core_ext/big_decimal/yaml_conversions is deprecated and will be removed in the future.' require 'bigdecimal' require 'yaml' require 'active_support/core_ext/big_decimal/conversions' class BigDecimal YAML_MAPPING = { 'Infinity' => '.Inf', '-Infinity' => '-.Inf', 'NaN' => '.NaN' } def encode_with(coder) string = to_s coder.represent_scalar(nil, YAML_MAPPING[string] || string) end end
Version data entries
63 entries across 62 versions & 7 rubygems