From 5e450080443d3637e54059408dc97a8689750130 Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Fri, 22 Aug 2014 16:55:55 +0200 Subject: [PATCH] Env var should be saved with PATCH --- assets/scripts/lib/travis/adapters/env_vars.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/scripts/lib/travis/adapters/env_vars.coffee b/assets/scripts/lib/travis/adapters/env_vars.coffee index 440bc2fe..36dba2c2 100644 --- a/assets/scripts/lib/travis/adapters/env_vars.coffee +++ b/assets/scripts/lib/travis/adapters/env_vars.coffee @@ -14,7 +14,7 @@ Travis.EnvVarsAdapter = Travis.Adapter.extend url = this.buildURL(record.constructor, get(record, primaryKey), record) self = this - return this.ajax(url, record.toJSON(), "PUT").then (data) -> + return this.ajax(url, record.toJSON(), "PATCH").then (data) -> self.didSaveRecord(record, data) return record