Sha256: d3ac906d1ebe80b410864d142d5ec37e2ad2e6da1d9c22d8b2557275361baf29

Contents?: true

Size: 269 Bytes

Versions: 2

Compression:

Stored size: 269 Bytes

Contents

class DelayedPaperclipJob < Struct.new(:instance_klass, :instance_id, :attachment_name)
  def perform
    instance = instance_klass.constantize.find(instance_id)

    instance.send(attachment_name).reprocess!
    instance.send("#{attachment_name}_processed!")
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
delayed_paperclip-0.6.1 lib/delayed/jobs/delayed_paperclip_job.rb
delayed_paperclip-0.6.0 lib/delayed/jobs/delayed_paperclip_job.rb