Sha256: ce74a98813a24626c83c34299ae3cd00347135ac1447ab92f47cf87952d91785
Contents?: true
Size: 361 Bytes
Versions: 4
Compression:
Stored size: 361 Bytes
Contents
module Recommendable if defined?(Sidekiq) class SidekiqWorker include ::Sidekiq::Worker sidekiq_options :queue => :recommendable, :unique => true def perform(user_id) user = Recommendable.user_class.find(user_id) user.send :update_similarities user.send :update_recommendations end end end end
Version data entries
4 entries across 4 versions & 1 rubygems