Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Upgrade Paperclip 3x to 4x

Johannes Lüdke edited this page Aug 17, 2015 · 2 revisions

What should be considered when upgrading to Paperclip 4.x

Starting with Paperclip version 4.0, all attachments are required to include a content_type validation, a file_name validation, or to explicitly state that they're not going to have either.

Paperclip raises Paperclip::Errors::MissingRequiredValidatorError error if you do not do any of this.

http://stackoverflow.com/questions/21897725