Paperclip has validation methods like validates_attachment_presence
, validates_attachment_content_type
, and validates_attachment_size
.
So all you need to do is pass mime types of images you'd like to have as attachments:
validates_attachment_content_type 'image/png', 'image/jpg'