Skip to content

Instantly share code, notes, and snippets.

@gintsgints
Created January 8, 2014 19:08
Show Gist options
  • Save gintsgints/8322494 to your computer and use it in GitHub Desktop.
Save gintsgints/8322494 to your computer and use it in GitHub Desktop.
Simple way of arrays
App.ArrayTransform = DS.Transform.extend({
deserialize: function(serialized) {
return serialized;
},
serialize: function(deserialized) {
return deserialized;
}
});
var attr = DS.attr;
App.Requirement = DS.Model.extend({
name: attr('string'),
optionsArray: attr('array')
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment