Skip to content

Conversation

jeron-diovis
Copy link

If we don't attach validation mixin through view and mixing it directly to model,
we don't have access to valid/invalid callbacks. So we can use only "validated:*" events.
And so - we never know which exactly attributes was validated, which is very important information.

Need to pass list of changed attributes to validation events.

@jeron-diovis jeron-diovis force-pushed the pass_changed_attrs_to_validation_events branch from 0000000 to 1bee0f3 Compare August 20, 2014 11:28
@platinumazure
Copy link

Not seeing any unit tests here.

@jeron-diovis
Copy link
Author

Is it ok?

@platinumazure
Copy link

@jeron-diovis Actually: Just wondering, have you tried using model.changedAttributes()? Perhaps that will do what you want?

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

Successfully merging this pull request may close these issues.

2 participants