This project is archived and is in readonly mode.
after_validate does not stop when false is returned
-
Prem Sichanugrist (sikachu)
- Tag cleared.
I think this is an expected output.
You should have used
before_save,before_createorbefore_updateif you want to break the saving process of the record when something goes wrong.I think
after_validationcallback should only be used ifbefore_save,before_createorbefore_updateis not a suitable place to change the data that will fail the validation. -
Prem Sichanugrist (sikachu)
- State changed from new to wontfix