Sha256: e8adb23c29fc61f699de0e30b2040b1f15d013267ef4048de23c4cff27408198

Contents?: true

Size: 454 Bytes

Versions: 17

Compression:

Stored size: 454 Bytes

Contents

require 'resque'

module DelayedPaperclip
  module Jobs
    class Resque
      @queue = :paperclip

      def self.enqueue_delayed_paperclip(instance_klass, instance_id, attachment_name)
        ::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

17 entries across 17 versions & 1 rubygems

Version Path
delayed_paperclip-2.9.1 lib/delayed_paperclip/jobs/resque.rb
delayed_paperclip-2.9.0 lib/delayed_paperclip/jobs/resque.rb
delayed_paperclip-2.8.0 lib/delayed_paperclip/jobs/resque.rb
delayed_paperclip-2.7.1 lib/delayed_paperclip/jobs/resque.rb
delayed_paperclip-2.7.0 lib/delayed_paperclip/jobs/resque.rb
delayed_paperclip-2.6.1 lib/delayed_paperclip/jobs/resque.rb
delayed_paperclip-2.6.0.0 lib/delayed_paperclip/jobs/resque.rb
delayed_paperclip-2.5.1.0 lib/delayed_paperclip/jobs/resque.rb
delayed_paperclip-2.5.0.1 lib/delayed_paperclip/jobs/resque.rb
delayed_paperclip-2.4.5.2 lib/delayed_paperclip/jobs/resque.rb
delayed_paperclip-2.4.5.1 lib/delayed_paperclip/jobs/resque.rb
delayed_paperclip-2.4.5.0 lib/delayed_paperclip/jobs/resque.rb
delayed_paperclip-2.4.4.0 lib/delayed_paperclip/jobs/resque.rb
delayed_paperclip-2.4.3.0 lib/delayed_paperclip/jobs/resque.rb
delayed_paperclip-2.4.2.0 lib/delayed_paperclip/jobs/resque.rb
delayed_paperclip-2.4.1.0 lib/delayed_paperclip/jobs/resque.rb
delayed_paperclip-2.4.0.0 lib/delayed_paperclip/jobs/resque.rb