如何在Paperclip中禁用pdf后处理而不更改Paperclip源?
before_post_process :is_image? def is_image? ["image/jpeg","image/pjpeg","image/png","image/x-png","image/gif"].include?(self.asset_content_type) end