Sha256: b233fe238c896bf0482f178849e8859f7db96ba748bf35bab8ed81cddd7b57da

Contents?: true

Size: 302 Bytes

Versions: 5

Compression:

Stored size: 302 Bytes

Contents

module Recommendable
  class RecommendationRefresher
    include Resque::Plugins::UniqueJob
    @queue = :recommendable
    
    def self.perform(user_id)
      user = Recommendable.user_class.find(user_id)
      user.send :update_similarities
      user.send :update_recommendations
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
recommendable-1.0.0 app/workers/recommendable/recommendation_refresher.rb
recommendable-0.2.1.1 app/workers/recommendable/recommendation_refresher.rb
recommendable-0.1.8 app/workers/recommendable/recommendation_refresher.rb
recommendable-0.1.6 app/workers/recommendable/recommendation_refresher.rb
recommendable-0.1.2 app/jobs/recommendable/recommendation_refresher.rb