I have an EmberData snapshot which I'd like decorate with a few additional attributes before handing over to the UI for presentation. This decoration will be setting "properties" of the Ember-Data record not actual attributes. It looks like this:
let foo = Ember.computed.oneWay(this.get('store').find('activity'));
foo.map(item => {
item.set('foobar', 'baz');
return item;
}
I would then hope that foo
would be the beneficiary of the promised record (it is) and the setting of the foobar
property would be localized to the foo property (it's not, it seems to be globally scoped to the record's properties).