Bring back DurationCalculations mixin to Build

This commit is contained in:
Piotr Sarnacki 2016-01-06 12:09:03 +01:00
parent f349321024
commit ac7c92d0c4

View File

@ -9,12 +9,12 @@ import Config from 'travis/config/environment';
var Build;
if (Config.useV3API) {
Build = DS.Model.extend({
Build = DS.Model.extend(DurationCalculations, {
branch: DS.belongsTo('branch', { async: false, inverse: 'builds' }),
branchName: Ember.computed.alias('branch.name')
});
} else {
Build = DS.Model.extend({
Build = DS.Model.extend(DurationCalculations, {
branchName: Ember.computed.alias('commit.branch')
});
}