This repository has been archived by the owner on Jul 13, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
after_post_process callback called on invalid object #1698
Labels
Comments
Has this been resolved? I'm having the same issue with PaperClip 4.3. I posted this StackOverflow question yesterday: http://stackoverflow.com/questions/31665588/paperclip-is-not-executing-validates-attachment |
@jyurek do we want to update the documentation to describe this behavior, or change the behavior to what the docs say? |
I think the code should reflect what the documentation says. So it's a bug to me. |
What version of Rails are you using? Is this still an issue? We've been editing related code, and need reproduction steps. |
At the time, 3.2.16, since moved the 4.2.4 but left the code as is. |
Related with: #2178 |
Closing in favor of related issue, which has more information. Thank you for reporting. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm creating a attachment , inside the model I call
When I upload a file that's a content spoof, I get:
but my after_post_process method is still called. When I debugged inside the after_post_process method, self.valid? was false for the content spoofed and was valid for the legitimate attachment.
It should have never called the after_post_process when self.valid? == false according to the documents.
Thanks
The text was updated successfully, but these errors were encountered: