Sha256: b6f9cbe0609bac3040e42b96183ed630558cb3782a4eb58494972b41440f0399
Contents?: true
Size: 499 Bytes
Versions: 8
Compression:
Stored size: 499 Bytes
Contents
require 'sidekiq/worker' module DelayedPaperclip module Jobs class Sidekiq include ::Sidekiq::Worker sidekiq_options :queue => :paperclip def self.enqueue_delayed_paperclip(instance_klass, instance_id, attachment_name) perform_async(instance_klass, instance_id, attachment_name) end def perform(instance_klass, instance_id, attachment_name) DelayedPaperclip.process_job(instance_klass, instance_id, attachment_name) end end end end
Version data entries
8 entries across 8 versions & 1 rubygems