How does Conditional Validation work in rails -
looking through rails code, can't see conditional validation gets executed... when pass string or symbol :if supposedly eval strings , send symbols... happen?
been trying follow through code can't find if options split send or eval , how works. trying learn , follow through how rails it.
https://github.com/rails/rails/blob/master/activemodel/lib/active_model/validator.rb https://github.com/rails/rails/blob/master/activemodel/lib/active_model/validations.rb
thanks!
this method responsible symbols, strings , lambdas being executed. seems rails using activesupport callbacks implement validations.
Comments
Post a Comment