Only use LibXML if present to avoid generating warning
This commit is contained in:
parent
137234e705
commit
a347ebcf5b
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user