diff --git a/app/jobs/marc_profiling_job.rb b/app/jobs/marc_profiling_job.rb index e14ef652..9dbe8194 100644 --- a/app/jobs/marc_profiling_job.rb +++ b/app/jobs/marc_profiling_job.rb @@ -22,8 +22,8 @@ def add(item) @sample[j] = [@size_so_far, item] if @wanted > j end - def each - @sample.sort.each { |_idx, it| yield(it) } + def each(&block) + @sample.sort.each_value(&block) end end