Thank you, it’s so simple
i found a simple way to get modelName: add a CP in my Attachment model like this:
// Attachment model
export default DS.Model.extend({
modelName: Ember.computed.alias('constructor.modelName')
});
So i can use {{email.attachment.modelName}}
(= “doc” OR “image”).