Class: Validb::Batcher

Inherits:
Object
  • Object
show all
Includes:
SidekiqStatus::Worker
Defined in:
lib/validb/batcher.rb

Instance Method Summary collapse

Instance Method Details

#perform(model_name, model_ids) ⇒ Object



5
6
7
8
9
10
# File 'lib/validb/batcher.rb', line 5

def perform(model_name, model_ids)
  model_name.constantize.find(model_ids).each do |record|
    record_validator = Validb::RecordValidator.new
    record_validator.validate(record)
  end
end