Skip to content

Delayed Paperclip does not generate all styles in latest version of Paperclip (v 3.0.4) #67

@timols

Description

@timols

Currently, due to API changes in Paperclip from v3.0 onwards, the reprocess! method that is called from process_delayed! does not reprocess all of the styles since the post_processing instance attribute on the attachment is set to false after being created. When reassigned/saved this is not updated to true again.

This is easily overcome by updating the relevant method as follows:

  def process_delayed!
    self.job_is_processing = true
    self.post_processing = true
    reprocess!
    self.job_is_processing = false
  end

Happy to provide a pull request if appropriate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions