travis-web/app/serializers
Piotr Sarnacki d4955c1ed0 Fix hooks toggling
New ember-data serializers send data without a model key in the payload
by default, so instead of what API expects:

    {
      "hook": {
        "id": 1,
        "active": true
      }
    }

it would send:

    { "id": 1, "active": true }

Because of that we need to change how hooks are serialized.

Furthermore, API V2 returns just "result: true" after a successful
request to change a hook, so we need to return something meaningful from
the adapter's updateRecord in order to make ember-data happy.
2015-12-08 10:18:08 +01:00
..
account.coffee Add ember-cli version of the Ember.js app 2015-02-03 09:48:22 +01:00
application.coffee Create adapters and serializers working with v3 and v2 APIs 2015-12-08 10:18:02 +01:00
branch.js Fix handling default_branch from pusher 2015-12-08 10:18:07 +01:00
build.js Fix handling default_branch from pusher 2015-12-08 10:18:07 +01:00
env-var.coffee Add ember-cli version of the Ember.js app 2015-02-03 09:48:22 +01:00
hook.js Fix hooks toggling 2015-12-08 10:18:08 +01:00
job.coffee Fix key for repo relationship for V3 API 2015-12-08 10:18:06 +01:00
repo.js Fix loading record by slug 2015-12-08 10:18:06 +01:00
request.js Fix requests payload 2015-12-08 10:18:08 +01:00
v2_fallback.js Fix handling default_branch from pusher 2015-12-08 10:18:07 +01:00
v3.js Don't error out if there's no hash in extractRelationship for V3 2015-12-08 10:18:07 +01:00