If you just want the model name (for example app/models/comment.js
has the model name comment
), you can use thing.constructor.modelName
.
For example:
var aComment = this.get('store').createRecord('comment');
aComment.get('constructor.modelName') // => 'comment'