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

Pass changed attrs to "validated:*" events #241

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

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