Reputation: 28810
This is probably a frequently asked question but how do I get the opaque hash from an Ember.Data model?
Upvotes: 0
Views: 138
Reputation: 2043
It depends on your version of Ember at them moment. There have been a lot of changes lately, but it should be one of these 3 methods:
object = App.MyModel.find(1)
object.toString()
object.toData()
object.serialize() //latest version
Upvotes: 2