-
Notifications
You must be signed in to change notification settings - Fork 12
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
Not able to set custom attribute names #11
Comments
@cdarken Hey, sorry for taking so long to respond. Can you give me an example of how you want to use it? |
Hi, no problem. I needed to be able to call methods of the standard Validator class, like setAttributeNames.
I've added this line:
I hope it's clear now. |
It would be nice to set custom attribute names to the validator.
For now I have a little workaround, I extend your class and override the
passes
method, in which I've added a call to a function similar to the one toaddConditionalRules
that receives the Validator instance as parameter.I named it
extraValidatorOptions
and in each validaor I override it and callsetAttributeNames
on it.Do you think it's a good idea? Should I try and write a patch for it and do a pull request?
The text was updated successfully, but these errors were encountered: