
While testing in the wild I spotted a few problems with it: * it didn't work for camel case names. * it was sometimes setting loaded data too late - it needed to use find and then save data on the record. Instead it should save data in special array saved on store, indexed by clientId * there is already method to get attributes in ember-data, it just doesn't work with Travis.Foo.get('attributes'), it needs Ember.get(Travis.Foo, 'attributes') - it makes implementation much shorter
1 line
8 B
Plaintext
1 line
8 B
Plaintext
f2588d36 |