I am trying to set default types in Ember Model, but only some types work:
createdDate: DS.attr('date', {defaultValue: new Date()}) // Works createdDate: DS.attr('boolean', {defaultValue: false}) // Works createdDate: DS.attr('string', {defaultValue: "example"}) // Doesn't work - attribute null createdDate: DS.attr('number', {defaultValue: 99}) // Doesn't work - attribute null
What am I missing?
source share