How to fix difference in behavior of activesupport 3.0.0 compare to 2.x?

半城伤御伤魂 提交于 2019-12-03 15:09:19

ActiveSupport no longer loads all its components when you require it. This allows you to cherry-pick the functionality that you want.

require "active_support/core_ext/hash/conversions"
{}.to_xml

Or if you really want all of ActiveSupport:

require "active_support/all"
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!