I have a model Assignment which belongs_to model Device
before an Assignment row gets created I need to validate that a boolean value for the corresponding device is set to true otherwise the creation should fail. How can this be done?
Aucun commentaire:
Enregistrer un commentaire