travis-web/app/models/branch.coffee
Piotr Sarnacki 2a2b3f018b Use lastBuild from defaultBranch on repository
One thing that is not standard here is a serializer for branch, which
uses @href as id. At this point branches don't have ids and ember-data
needs one, so using @href is the easiest way.
2015-11-09 13:46:54 +01:00

8 lines
153 B
CoffeeScript

`import Ember from 'ember'`
`import Model from 'travis/models/model'`
Branch = Model.extend
lastBuild: DS.belongsTo('build')
`export default Branch`