Sha256: a394c49d80b1de53e21d7c15ca7dad1eb132810c3962b872f56cb0b2572b2e5c

Contents?: true

Size: 436 Bytes

Versions: 10

Compression:

Stored size: 436 Bytes

Contents

module Recommendable
  module Workers
    class TorqueBox
      if defined?(::TorqueBox::Messaging::Backgroundable)
        include ::TorqueBox::Messaging::Backgroundable
        always_background :enqueue
      end

      def self.enqueue(user_id)
        Recommendable::Helpers::Calculations.update_similarities_for(user_id)
        Recommendable::Helpers::Calculations.update_recommendations_for(user_id)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
recommendable-2.2.2 lib/recommendable/workers/torque_box.rb
recommendable-2.2.1 lib/recommendable/workers/torque_box.rb
recommendable-2.2.0 lib/recommendable/workers/torque_box.rb
recommendable-2.1.4 lib/recommendable/workers/torque_box.rb
recommendable-2.1.3 lib/recommendable/workers/torque_box.rb
recommendable-2.1.2 lib/recommendable/workers/torque_box.rb
recommendable-2.1.1 lib/recommendable/workers/torque_box.rb
recommendable-2.1.0.2 lib/recommendable/workers/torque_box.rb
recommendable-2.1.0.1 lib/recommendable/workers/torque_box.rb
recommendable-2.0.4.20130313 lib/recommendable/workers/torque_box.rb