Add ability to disable paperclip-meta via an option #9

gmcnaughton opened this Issue Feb 8, 2012 · 1 comment


None yet
3 participants

I'm using STI to store info about attachments (images and non-images) in the DB. Because it's STI, the table includes one meta column shared by both classes.

When I upload a non-image, paperclip-meta tries to process it and causes "identify: no decode delegate" warnings in the logs (Mac OSX Lion, ImageMagick 6.7.4-6).

I would like to be able to disable paperclip-meta for attachments even when a meta column is present in the DB. For instance:

class FileAttachment < ActiveRecord::Base
  # Don't process non-images
  has_attached_file :attachment, :meta => lambda { |s| ... }, :styles => lambda { |s| ... } 

Is that possible? Maybe there's a way, I just didn't see it in the docs.

Edit: ala, only controlling whether or not meta info is loaded instead of which styles get generated.


y8 commented Feb 8, 2012

No, as for now there no way to disable paperclip-meta. Scheduled for v0.4.0

teeparham removed this from the 1.0.0 milestone Feb 27, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment