提交 7c537110 编写于 作者: X Xavier Noria

Merge pull request #12710 from robin850/fix-build

Require bigdecimal before monkey-patching it
# Hack to load json gem first so we can overwrite its to_json.
require 'json'
require 'bigdecimal'
# The JSON gem adds a few modules to Ruby core classes containing :to_json definition, overwriting
# their default behavior. That said, we need to define the basic to_json method in all of them,
......
......@@ -3,7 +3,6 @@
require 'active_support/core_ext/object/json'
require 'active_support/core_ext/module/delegation'
require 'bigdecimal'
require 'active_support/core_ext/big_decimal/conversions' # for #to_s
require 'active_support/core_ext/hash/except'
require 'active_support/core_ext/hash/slice'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册