source: subversion/sites/rails_port/config/initializers/libxml.rb @ 14006

Last change on this file since 14006 was 14006, checked in by tomhughes, 10 years ago

Update to use libxml 1.0.0 gem.

File size: 237 bytes
1require 'rubygems'
2gem 'libxml-ruby', '>= 1.0.0'
3require 'libxml'
5# This is required otherwise libxml writes out memory errors to
6# the standard output and exits uncleanly
7LibXML::XML::Error.set_handler do |message|
8  raise message
Note: See TracBrowser for help on using the repository browser.