Sha256: 4d412fcf2b4e4d84c2dd109d70c326117e4e1b561b6a78a951be32d9909466a0
Contents?: true
Size: 280 Bytes
Versions: 2
Compression:
Stored size: 280 Bytes
Contents
class ResquePaperclipJob @queue = :paperclip def self.perform(instance_klass, instance_id, attachment_name) 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/resque_paperclip_job.rb |
delayed_paperclip-0.6.0 | lib/delayed/jobs/resque_paperclip_job.rb |