# File lib/active_resource/validations.rb, line 258 def save_with_validation save_without_validation true rescue ResourceInvalid => error case self.class.format when ActiveResource::Formats[:xml] errors.from_xml(error.response.body) when ActiveResource::Formats[:json] errors.from_json(error.response.body) end false end