Flowdock
method

enqueue

Importance_0
v5.1.7 - Show latest stable - 0 notes - Class: SuckerPunchAdapter
enqueue(job) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activejob/lib/active_job/queue_adapters/sucker_punch_adapter.rb, line 19
      def enqueue(job) #:nodoc:
        if JobWrapper.respond_to?(:perform_async)
          # sucker_punch 2.0 API
          JobWrapper.perform_async job.serialize
        else
          # sucker_punch 1.0 API
          JobWrapper.new.async.perform job.serialize
        end
      end
Register or log in to add new notes.