Name |
Last commit
|
Last Update |
---|---|---|
.. | ||
generators/paperclip | ||
paperclip | ||
tasks | ||
paperclip.rb |
Using the ActiveRecord validations is smart in order to lessen load on the project to develop our own validators, but it's problematic in that calling `valid?` on the record fires off all the other validations -- including those on fields which may not be set yet because of mass-assignment. This commit will "pre-validate" the attachment's fields so that it doesn't process an invalid attachment, but it does so by running its validations manually on assignment.
Name |
Last commit
|
Last Update |
---|---|---|
.. | ||
generators/paperclip | Loading commit data... | |
paperclip | Loading commit data... | |
tasks | Loading commit data... | |
paperclip.rb | Loading commit data... |