Loads the set of remote errors into the
object’s Errors based on
the content-type of the error-block received
# File activeresource/lib/active_resource/validations.rb, line 104
def load_remote_errors(remote_errors, save_cache = false ) #:nodoc:
case self.class.format
when ActiveResource::Formats[:xml]
errors.from_xml(remote_errors.response.body, save_cache)
when ActiveResource::Formats[:json]
errors.from_json(remote_errors.response.body, save_cache)
end
end