Topic: Grabbing all validation UnboundMethods from a model in rails
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 so I can do this:
validateMethods = model.some_magical_call()
Right now I am trying to get this functionality by exploring the CallbackChain, but I am unsure how to get an unboundMethod out of this.
Also as a side topic, how useful do you think the rails community would think this project is?