提交 95037c9c 编写于 作者: K Kamil Trzcinski

Revert "monkey patch of Hash"

This reverts commit 6014019e.
上级 16e44ad7
# We need this patch because of json format error in the CI API:
# IOError (not opened for reading)
# Details: http://stackoverflow.com/questions/19808921/upgrade-to-rails-4-got-ioerror-not-opened-for-reading
# It happens because of ActiveSupport's monkey patch of json formatters
if defined?(ActiveSupport::JSON)
Hash.class_eval do
def to_json(*args)
super(args)
end
def as_json(*args)
super(args)
end
end
end
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册