Froze rails gems
[depot.git] / vendor / rails / activesupport / lib / active_support / core_ext / string / xchar.rb
diff --git a/vendor/rails/activesupport/lib/active_support/core_ext/string/xchar.rb b/vendor/rails/activesupport/lib/active_support/core_ext/string/xchar.rb
new file mode 100644 (file)
index 0000000..df186e4
--- /dev/null
@@ -0,0 +1,11 @@
+begin
+  # See http://bogomips.org/fast_xs/ by Eric Wong
+  require 'fast_xs'
+
+  class String
+    alias_method :original_xs, :to_xs if method_defined?(:to_xs)
+    alias_method :to_xs, :fast_xs
+  end
+rescue LoadError
+  # fast_xs extension unavailable.
+end