# File lib/active_resource/validations.rb, line 258 def save_with_validation save_without_validation true rescue ResourceInvalid => error case error.response['Content-Type'] when 'application/xml' errors.from_xml(error.response.body) when 'application/json' errors.from_json(error.response.body) end false end