Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure callback chain is aborted when store credit is not valid
This is needed to avoid discard to set deleted_at anyway. Now that we are not running this method as a validation anymore we need to stop the callback chain by throwing abort, see: https://api.rubyonrails.org/classes/ActiveModel/Callbacks.html
- Loading branch information