]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/libxml.rb
Precompile login.js
[rails.git] / config / initializers / libxml.rb
index 22f429da53bdaf89f866c01cdb95f78cd0142d9c..e0e659f12bc4e3e326a13a24da67a5aa69da0fa8 100644 (file)
@@ -1,5 +1,5 @@
-require 'rubygems'
-gem 'libxml-ruby', '>= 0.8.3'
-require 'libxml'
-
-LibXML::XML::Parser.register_error_handler(proc{})
+# This is required otherwise libxml writes out memory errors to
+# the standard output and exits uncleanly
+LibXML::XML::Error.set_handler do |message|
+  fail message
+end