提交 536c2399 编写于 作者: J Jeremy Kemper

JSON can't be autoloaded since it includes core extensions

上级 565fad35
......@@ -37,7 +37,6 @@ def self.load_all!
autoload :Duration, 'active_support/duration'
autoload :Gzip, 'active_support/gzip'
autoload :Inflector, 'active_support/inflector'
autoload :JSON, 'active_support/json'
autoload :Memoizable, 'active_support/memoizable'
autoload :MessageVerifier, 'active_support/message_verifier'
autoload :Multibyte, 'active_support/multibyte'
......@@ -53,6 +52,7 @@ def self.load_all!
require 'active_support/vendor'
require 'active_support/core_ext'
require 'active_support/json'
I18n.load_path << "#{File.dirname(__FILE__)}/active_support/locale/en.yml"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册