Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting "Cannot read property 'rev' of undefined" when trying to add rev field to a mixin #245

Open
BMahabir opened this issue Oct 2, 2019 · 1 comment

Comments

@BMahabir
Copy link

BMahabir commented Oct 2, 2019

I don't want to add the rev field to a mixin, but if I don't, I get the error for it as if it was a model :

Please add a `rev` attribute of type `string` on the AssignableNote model.

This probably because I have a model that uses that mixin :

import AssignableAction from 'erm/mixins/assignable-action';
import AssignableNote from 'erm/mixins/assignable-note';
import Model from 'ember-pouch/model';

export default Model.extend(AssignableAction, AssignableNote, {
  org: DS.belongsTo('org'),
  name: DS.attr(),
  email: DS.attr(),
});

Any help appreciated -- thanks!

@backspace
Copy link
Collaborator

Does this happen even if you add a rev to the model that actually extends an Ember Pouch model?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants