Env var should be saved with PATCH

This commit is contained in:
Piotr Sarnacki 2014-08-22 16:55:55 +02:00
parent 9ad263e984
commit 5e45008044

View File

@ -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