What if I have to use the name ‘data’ as an attribute?
I am using the d3 tree-layout libary for svg Home · d3/d3 Wiki · GitHub which uses a pretty specific json structure (without severely modifying the code)
export default DS.Model.extend({
clientid: DS.attr(),
name: DS.attr(),
nodetype: DS.attr(),
data: DS.attr(),
_children: DS.hasMany('orgtree')
});
as you can see the ‘data’ element conflicts with a pretty basic rule of Ember-Data not to use that name. Is there a work-around?