Ember2 refactor progress
This commit is contained in:
@@ -7,6 +7,8 @@ App.Employee= DS.Model.extend Ember.Validations.Mixin,
|
||||
color: attr 'string', defaultValue: '#3a87ad'
|
||||
employee_shifts: DS.hasMany('employee-shift')
|
||||
|
||||
isManager: -> @get('manager')
|
||||
|
||||
validations:
|
||||
name: {presence: true}
|
||||
email: {format: /.+@.+\..{2,4}/}
|
||||
|
||||
Reference in New Issue
Block a user