Sha256: f73da5a15a96a04f95e10663620d095b843504dc1b6b30dc8cb890453900abc6
Contents?: true
Size: 597 Bytes
Versions: 11
Compression:
Stored size: 597 Bytes
Contents
require 'forwardable' module Delayed module Web class Job extend SingleForwardable def_delegator :backend, :all def_delegator :backend, :find # Set the backend you're using for Delayed::Job. # # Example: # Delayed::Web::Job.backend = :active_record # # @param new_backend [String] "active_record" or "double". # # @return [void] def self.backend= new_backend @backend = "Delayed::Web::Job::#{new_backend.classify}".constantize end def self.backend @backend end end end end
Version data entries
11 entries across 11 versions & 1 rubygems