Skip to content

Instantly share code, notes, and snippets.

@mxrguspxrt
Created October 4, 2014 16:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mxrguspxrt/4644d0397b89bb8d2ff1 to your computer and use it in GitHub Desktop.
Save mxrguspxrt/4644d0397b89bb8d2ff1 to your computer and use it in GitHub Desktop.
Ember HashTransform for Grapho,
App.HashTransform = DS.Transform.extend({
deserialize: function(serialized) {
return serialized || {}
},
serialize: function(deserialized) {
return deserialized || {}
}
});
App.register("transform:hash", App.HashTransform);
@mxrguspxrt
Copy link
Author

You are doing it wrong. You need to have assocation of embed object or create just Hash transform. I can send gist if you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment