Sha256: f46d5aae8dc6016f87a1cbe29eea45eee309a029839e5e31d20c38a3cfe55b43
Contents?: true
Size: 567 Bytes
Versions: 2
Compression:
Stored size: 567 Bytes
Contents
module DelayedPaperclip module Jobs class DelayedJob < Struct.new(:instance_klass, :instance_id, :attachment_name) def self.enqueue_delayed_paperclip(instance_klass, instance_id, attachment_name) ::Delayed::Job.enqueue( new(instance_klass, instance_id, attachment_name), :priority => instance_klass.constantize.attachment_definitions[attachment_name][:delayed][:priority].to_i ) end def perform DelayedPaperclip.process_job(instance_klass, instance_id, attachment_name) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
delayed_paperclip-0.7.2 | lib/delayed_paperclip/jobs/delayed_job.rb |
delayed_paperclip-0.7.1 | lib/delayed_paperclip/jobs/delayed_job.rb |