diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-01-02 21:57:59 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-01-04 11:58:40 -0300 |
commit | 98ea19925d6db642731741c3b91bd085fac92241 (patch) | |
tree | 8b3bc8624b6d59509edd807004b530bb57539510 /activesupport/lib/active_support | |
parent | a3ce6ca30ed0e77496c63781af596b149687b6d7 (diff) | |
download | rails-98ea19925d6db642731741c3b91bd085fac92241.tar.gz rails-98ea19925d6db642731741c3b91bd085fac92241.tar.bz2 rails-98ea19925d6db642731741c3b91bd085fac92241.zip |
Remove deprecated core_ext/big_decimal/yaml_conversions file
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r-- | activesupport/lib/active_support/core_ext/big_decimal/yaml_conversions.rb | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/activesupport/lib/active_support/core_ext/big_decimal/yaml_conversions.rb b/activesupport/lib/active_support/core_ext/big_decimal/yaml_conversions.rb deleted file mode 100644 index 46ba93ead4..0000000000 --- a/activesupport/lib/active_support/core_ext/big_decimal/yaml_conversions.rb +++ /dev/null @@ -1,14 +0,0 @@ -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 |