Created
October 4, 2014 16:27
-
-
Save mxrguspxrt/4644d0397b89bb8d2ff1 to your computer and use it in GitHub Desktop.
Ember HashTransform for Grapho,
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
App.HashTransform = DS.Transform.extend({ | |
deserialize: function(serialized) { | |
return serialized || {} | |
}, | |
serialize: function(deserialized) { | |
return deserialized || {} | |
} | |
}); | |
App.register("transform:hash", App.HashTransform); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.