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

View File

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