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
contradictory wiki / readme about preprocessing invalid too-large files #2236
Comments
The README is incorrect. See PR: #2204. Thanks for bringing this up. |
OK, what can we do to close this issue? Will that PR fix the inconsistency, or is it worth changing the text in the readme? |
Just commented on the PR: adjusting the README to describe current behavior is a first step, indeed! #2204 (comment) Thank you for reporting. |
saghaulor
added a commit
to saghaulor/paperclip
that referenced
this issue
Apr 26, 2018
- Because the processors were called on assignment, instead of during saving, the validations could never work correctly. This is because the built in validations use the values in the db columns to operate. However, since these are populated on assignment, the validations cannot run before the processors run. Moreover, any other type of validation not dependent on the db columns also cannot run, because the processors are called on assignment. The processors should be called during save which allows for validations to occur. - Fixed tests that assert the incorrect behavior - Closes thoughtbot#2462, Closes thoughtbot#2321, Closes thoughtbot#2236, Closes thoughtbot#2178, Closes thoughtbot#1960, Closes thoughtbot#2204
Open PR that will be merged, thanks for the issue. |
saghaulor
added a commit
to saghaulor/paperclip
that referenced
this issue
Aug 19, 2018
- Because the processors were called on assignment, instead of during saving, the validations could never work correctly. This is because the built in validations use the values in the db columns to operate. However, since these are populated on assignment, the validations cannot run before the processors run. Moreover, any other type of validation not dependent on the db columns also cannot run, because the processors are called on assignment. The processors should be called during save which allows for validations to occur. - Fixed tests that assert the incorrect behavior - Closes thoughtbot#2462, Closes thoughtbot#2321, Closes thoughtbot#2236, Closes thoughtbot#2178, Closes thoughtbot#1960, Closes thoughtbot#2204
This has been fixed at https://github.com/kreeti/paperclip/commits/master. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
https://github.com/thoughtbot/paperclip#validations says
https://github.com/thoughtbot/paperclip/wiki/Thumbnail-Generation#prevent-thumbnail-generation-for-invalid-uploads says
Which is correct?
Is the wiki text now outdated and deletable?
The text was updated successfully, but these errors were encountered: