Permalink
Browse files

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

  • Loading branch information...
1 parent ea3a190 commit dfdc1e31a2d86a54b9aceac1869318cc921150ef @tenderlove tenderlove committed Apr 6, 2013
@@ -1,5 +1,7 @@
## 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'
@@ -1,18 +0,0 @@
-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

0 comments on commit dfdc1e3

Please sign in to comment.