Sha256: 521b90506f3b2bf2f6aea58804557cf3ccb0d1bd60febad893922ce02a0ccb26

Contents?: true

Size: 529 Bytes

Versions: 1

Compression:

Stored size: 529 Bytes

Contents

require 'resque'

module DelayedPaperclip
  module Jobs
    class Resque
      def self.enqueue_delayed_paperclip(instance_klass, instance_id, attachment_name)
        @queue = instance_klass.constantize.paperclip_definitions[attachment_name][:delayed][:queue]
        ::Resque.enqueue(self, instance_klass, instance_id, attachment_name)
      end

      def self.perform(instance_klass, instance_id, attachment_name)
        DelayedPaperclip.process_job(instance_klass, instance_id, attachment_name)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
delayed_paperclip-2.9.2 lib/delayed_paperclip/jobs/resque.rb