jeudi 29 décembre 2016

Model's attributes are being failed validation when they are not passed

is it logical that when I don't pass attributes' values, they failed the validation of the custom validation method, even though I am not trying to update them, however, the value is valid, and it was created successfully at the first place.

   Parameters: {"utf8"=>"✓", "id"=>"2", "shop"=>{"allowed_users"=>"5"}, "commit"=>"עדכן"}

The validation fails only for the custom validation method, for :shop_customer_id.

Aucun commentaire:

Enregistrer un commentaire