lib/scripterator/runner.rb in scripterator-1.0.0 vs lib/scripterator/runner.rb in scripterator-1.1.0

- old
+ new

@@ -113,10 +113,10 @@ expire_redis_sets end def run_for_id_list - @id_list.each { |id| transform_one_record(fetch_record(id)) } + model_finder.where(id: @id_list).find_each { |record| transform_one_record(record) } end def transform_one_record(record) return if record.nil?