Sha256: 4abf5d56a62bae711978a192b47f8954fb99d721d694b56acdc0612b3ed36011

Contents?: true

Size: 362 Bytes

Versions: 16

Compression:

Stored size: 362 Bytes

Contents

module Recommendable
  module Workers
    class DelayedJob
      attr_accessor :user_id

      def initialize(user_id)
        @user_id = user_id
      end

      def perform
        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/delayed_job.rb
recommendable-2.2.1 lib/recommendable/workers/delayed_job.rb
recommendable-2.2.0 lib/recommendable/workers/delayed_job.rb
recommendable-2.1.4 lib/recommendable/workers/delayed_job.rb
recommendable-2.1.3 lib/recommendable/workers/delayed_job.rb
recommendable-2.1.2 lib/recommendable/workers/delayed_job.rb
recommendable-2.1.1 lib/recommendable/workers/delayed_job.rb
recommendable-2.1.0.2 lib/recommendable/workers/delayed_job.rb
recommendable-2.1.0.1 lib/recommendable/workers/delayed_job.rb
recommendable-2.0.4.20130313 lib/recommendable/workers/delayed_job.rb
recommendable-2.0.4 lib/recommendable/workers/delayed_job.rb
recommendable-2.0.3 lib/recommendable/workers/delayed_job.rb
recommendable-2.0.2 lib/recommendable/workers/delayed_job.rb
recommendable-2.0.1 lib/recommendable/workers/delayed_job.rb
recommendable-2.0.0.20121011 lib/recommendable/workers/delayed_job.rb
recommendable-2.0.0 lib/recommendable/workers/delayed_job.rb