class Cws3chk::Job

This job takes an ActiveRecord model, a column and a bunch of ids, and runs the check on all the versions of those objects. Including the original version.

Public Class Methods

perform(klass_name, ids_json, threads, mounted_column) click to toggle source
# File lib/cws3chk/job.rb, line 7
def self.perform klass_name, ids_json, threads, mounted_column
  ids = JSON.load ids_json
  request = klass_name.constantize.where id: ids
  Cws3chk::Checker.new(request, mounted_column, threads).check
end