Sha256: f5a0888437754604ea0c01ebb307cd9815826a48dcee46872250f716e66569a9
Contents?: true
Size: 524 Bytes
Versions: 2
Compression:
Stored size: 524 Bytes
Contents
module DelayedPaperclip module Jobs class ActiveJob < ActiveJob::Base queue_as :paperclip def self.enqueue_delayed_paperclip(instance_klass, instance_id, attachment_name) # ActiveJob currently does not support symbol arguments self.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.9.1 | lib/delayed_paperclip/jobs/active_job.rb |
delayed_paperclip-2.9.0 | lib/delayed_paperclip/jobs/active_job.rb |