Sha256: 02ff2c713be2c17dbe1f17918c992eabcecc70feb594382e2245fd107e69a21f

Contents?: true

Size: 390 Bytes

Versions: 16

Compression:

Stored size: 390 Bytes

Contents

module Recommendable
  module Workers
    class Resque
      include ::Resque::Plugins::UniqueJob if defined?(::Resque::Plugins::UniqueJob)
      @queue = :recommendable

      def self.perform(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

16 entries across 16 versions & 1 rubygems

Version Path
recommendable-2.2.2 lib/recommendable/workers/resque.rb
recommendable-2.2.1 lib/recommendable/workers/resque.rb
recommendable-2.2.0 lib/recommendable/workers/resque.rb
recommendable-2.1.4 lib/recommendable/workers/resque.rb
recommendable-2.1.3 lib/recommendable/workers/resque.rb
recommendable-2.1.2 lib/recommendable/workers/resque.rb
recommendable-2.1.1 lib/recommendable/workers/resque.rb
recommendable-2.1.0.2 lib/recommendable/workers/resque.rb
recommendable-2.1.0.1 lib/recommendable/workers/resque.rb
recommendable-2.0.4.20130313 lib/recommendable/workers/resque.rb
recommendable-2.0.4 lib/recommendable/workers/resque.rb
recommendable-2.0.3 lib/recommendable/workers/resque.rb
recommendable-2.0.2 lib/recommendable/workers/resque.rb
recommendable-2.0.1 lib/recommendable/workers/resque.rb
recommendable-2.0.0.20121011 lib/recommendable/workers/resque.rb
recommendable-2.0.0 lib/recommendable/workers/resque.rb