from_xml(xml)
Grabs errors from the XML response.
# File activeresource/lib/active_resource/validations.rb, line 224 def from_xml(xml) array = Array.wrap(Hash.from_xml(xml)['errors']['error']) rescue [] from_array array end