Sha256: a8c458ff0430eaebb03f5d37598f4ce9a4252b1544061e78a1a3cdb11dea6768
Contents?: true
Size: 560 Bytes
Versions: 2
Compression:
Stored size: 560 Bytes
Contents
module DelayedPaperclip module Jobs class ActiveJob < ActiveJob::Base def self.enqueue_delayed_paperclip(instance_klass, instance_id, attachment_name) queue_name = instance_klass.constantize.paperclip_definitions[attachment_name][:delayed][:queue] set(:queue => queue_name).perform_later(instance_klass, instance_id, attachment_name.to_s) end def perform(instance_klass, instance_id, attachment_name) DelayedPaperclip.process_job(instance_klass, instance_id, attachment_name.to_sym) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
delayed_paperclip-2.10.0 | lib/delayed_paperclip/jobs/active_job.rb |
delayed_paperclip-2.9.2 | lib/delayed_paperclip/jobs/active_job.rb |