提交 dfdc1e31 编写于 作者: A Aaron Patterson

`fast_xs` support has been removed. Use 'String#encode(xml: :attr)`.

上级 ea3a1901
## Rails 4.0.0 (unreleased) ##
* `fast_xs` support has been removed. Use 'String#encode(xml: :attr)`.
* `ActiveSupport::Notifications::Instrumenter#instrument` should yield
its payload.
......
......@@ -4,7 +4,6 @@
require 'active_support/core_ext/string/starts_ends_with'
require 'active_support/core_ext/string/inflections'
require 'active_support/core_ext/string/access'
require 'active_support/core_ext/string/xchar'
require 'active_support/core_ext/string/behavior'
require 'active_support/core_ext/string/output_safety'
require 'active_support/core_ext/string/exclude'
......
begin
# See http://fast-xs.rubyforge.org/ by Eric Wong.
# Also included with hpricot.
require 'fast_xs'
rescue LoadError
# fast_xs extension unavailable
else
begin
require 'builder'
rescue LoadError
# builder demands the first shot at defining String#to_xs
end
class String
alias_method :original_xs, :to_xs if method_defined?(:to_xs)
alias_method :to_xs, :fast_xs
end
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册