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

Version Path
delayed_paperclip-2.9.1 lib/delayed_paperclip/jobs/sidekiq.rb
delayed_paperclip-2.9.0 lib/delayed_paperclip/jobs/sidekiq.rb
delayed_paperclip-2.8.0 lib/delayed_paperclip/jobs/sidekiq.rb
delayed_paperclip-2.7.1 lib/delayed_paperclip/jobs/sidekiq.rb
delayed_paperclip-2.7.0 lib/delayed_paperclip/jobs/sidekiq.rb
delayed_paperclip-2.6.1 lib/delayed_paperclip/jobs/sidekiq.rb
delayed_paperclip-2.6.0.0 lib/delayed_paperclip/jobs/sidekiq.rb
delayed_paperclip-2.5.1.0 lib/delayed_paperclip/jobs/sidekiq.rb