Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] running validations callback so as to prevent post_processing on invalid attachments #16

Merged
merged 3 commits into from
Dec 30, 2019
Merged

[bug] running validations callback so as to prevent post_processing on invalid attachments #16

merged 3 commits into from
Dec 30, 2019

Conversation

sbhawsingka
Copy link
Collaborator

@sbhawsingka sbhawsingka commented Dec 25, 2019

If there are validation errors on the attachment object, the post_process hooks should not be called. Currently the validation on the attachments are done as part of the post process, so a new callback has been added which runs before post process to do the validations.

Closes thoughtbot#2462, Closes thoughtbot#2321, Closes thoughtbot#2236, Closes thoughtbot#2178, Closes thoughtbot#1960, Closes thoughtbot#2204

…o that if validations fail, post_process won't be called
@sbhawsingka sbhawsingka changed the title [bug] if validations fail, post_process is not called [bug] running validations callback so as to prevent post_processing on invalid attachments Dec 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment