I am working on a project that will take custom validations on models
are currently passing in the model, and the validation method (as an
What I want is to get all the UnboundMethods that get used for
validating the model because our translator leverages the AST
representation of the methods (using 'live-ast'), therefore the
model_name.validators will not work (it returns an array I think). I
need to get all custom defined validation methods that are defined
inside the model itself as well as all validators the model uses.
One thought is to somehow use the callback chain, but I am unsure on
how to get the unboundmethods out of this.
Any help is much appreciated!