Hack for one to many relationship changes

This commit is contained in:
Piotr Sarnacki 2013-02-26 04:36:47 +01:00
parent 1bccb5d177
commit e96abff0e6

View File

@ -19,6 +19,11 @@ require 'travis/model'
commit: DS.belongsTo('Travis.Commit')
commits: DS.belongsTo('Travis.Commit')
# this is a fake relationship just to get rid
# of ember data's bug: https://github.com/emberjs/data/issues/758
# TODO: remove when this issue is fixed
fakeBuild: DS.belongsTo('Travis.Build')
log: ( ->
Travis.Log.create(job: this)
).property()