mercredi 30 octobre 2019

Multiple validates with :on in ruby

Hey I have a doubt if there is multiple validate in a line if :on at last whether all the validation are applicable to the :on or only the last validation.

//code validate :trial_account, :limit_for_account, on: :check_trial

// Whether only limit_for_account is validated on check_trial or both.

Aucun commentaire:

Enregistrer un commentaire