Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#app/worker/cc_worker.rb
class CCWorker
def self.enqueue(delay_time, base_class, options)
enqueuer_class = options[:cache] ? CCDeferredEnqueuer : CCRecalculationEnqueuer
enqueuer_class.new(delay_time, base_class, options).enqueue_update
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment