
2
before_validate: abort save?
It seems logical to me that when using a before_validate action, resulting in an error, the object should not be saved.
However: an error is reported, but still the record is saved. How can i prevent a save?
It seems logical to me that when using a before_validate action, resulting in an error, the object should not be saved.
However: an error is reported, but still the record is saved. How can i prevent a save?
Login to reply