You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importDSfrom'ember-data';importValidatorfrom'../mixins/model-validator';varattr=DS.attr;exportdefaultDS.Model.extend(Validator,{plan: DS.belongsTo('plan',{async: true}),validations: {plan: {presence: {message: 'Please select a plan'}}}});
Then when I'm trying to validate a model trying to test the behavior when the validation fail, the validation pass, but if I delete the {async: true} the validations doesn't pass (as expected)
The text was updated successfully, but these errors were encountered:
I have the following model
Then when I'm trying to validate a model trying to test the behavior when the validation fail, the validation pass, but if I delete the
{async: true}
the validations doesn't pass (as expected)The text was updated successfully, but these errors were encountered: