Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using FactoryGirl.create on a model with paperclip the post processor doesn't run when an attachment is added. #65

Closed
gjamerson opened this issue Jul 3, 2012 · 3 comments

Comments

@gjamerson
Copy link

When using FactoryGirl.create on a model with paperclip the post processor doesn't run when an attachment is added. Is this intended or am I missing something? Thanks!

@joshuaclayton
Copy link
Contributor

Do you happen to have this code somewhere in your project?

module Paperclip
  class Attachment
    def post_process_styles
      # Skip thumbnails
    end
  end
end

@gjamerson
Copy link
Author

I do not. Currently I have lib/paperclip_processors. This seems to work as expected in the development environment... But in the test environment it only generates the "original" attachment file and dir not the additional style and dir. I have an additional style "corrected_encoding" that corrects encoding flaws in csv files that are attached.

@joshuaclayton
Copy link
Contributor

@gdjamerson Did you figure it out? Nothing stands out as being weird, and especially if you haven't disabled post-processing, it should still run all the paperclip handling...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants