Only use LibXML if present to avoid generating warning

This commit is contained in:
ccocchi 2012-09-20 18:33:35 +02:00
parent 137234e705
commit a347ebcf5b
1 changed files with 1 additions and 1 deletions

View File

@ -64,6 +64,6 @@ module RablRails
def self.load_default_engines!
self.json_engine = MultiJson.default_engine
self.xml_engine = 'LibXML'
self.xml_engine = 'LibXML' if defined?(LibXML)
end
end