Bring back DurationCalculations mixin to Build
This commit is contained in:
parent
f349321024
commit
ac7c92d0c4
|
@ -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')
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user