]> git.openstreetmap.org Git - rails.git/blob - config/initializers/libxml.rb
Make the role in relations optional, with a test to make sure it is. Also start movin...
[rails.git] / config / initializers / libxml.rb
1 # This is required otherwise libxml writes out memory errors to
2 # the standard output and exits uncleanly 
3 # Changed method due to deprecation of the old register_error_handler
4 # http://libxml.rubyforge.org/rdoc/classes/LibXML/XML/Parser.html#M000076
5 # So set_handler is used instead
6 # http://libxml.rubyforge.org/rdoc/classes/LibXML/XML/Error.html#M000334
7 LibXML::XML::Error.set_handler do |message|
8   raise message
9 end