Skip to content

Instantly share code, notes, and snippets.

@sbbitch7
sbbitch7 / transforms.js
Created January 13, 2016 09:22 — forked from pixelhandler/transforms.js
Raw object and array tranforms for Ember Data
/*
DS.attr('object')
*/
App.ObjectTransform = DS.Transform.extend({
deserialize: function(value) {
if (!$.isPlainObject(value)) {
return {};
} else {
return value;
}