Files
ember-panda/app/models/panda/workflow-action-constraint.coffee
2017-12-21 11:51:55 +01:00

10 lines
371 B
CoffeeScript

import DS from 'ember-data'
export default DS.Model.extend
type: DS.attr('string', defaultValue: 'warn')
workflow_action_definition: DS.belongsTo('panda/workflow-action-definition', inverse: 'workflow_action_constraints')
constraint_workflow_action_definition: DS.belongsTo('panda/workflow-action-definition')
restrict: Ember.computed.equal 'type', 'restrict'