Using ember-cli with ember-cli-coffeescript installed. If I define a model named Person in pure javascript (see below) it works just fine.
file: models/person.js
import DS from 'ember-data';
export default DS.Model.extend({
nome: DS.attr('string')
});
But when I try to use coffeScript I get an error message stating that the Person model is not defined. See the coffeScript bellow, what am I missing here?
`import DS from 'ember-data';`
Person = DS.Model.extend
nome: DS.attr('string')
`export default Person;`