web/app/models/tag.rb
changeset 177 8e7f0029550d
parent 164 120a4f1e25c0
child 304 91286a87b569
equal deleted inserted replaced
176:3e985ae7ad4d 177:8e7f0029550d
    12       map(&:benchmark_info).
    12       map(&:benchmark_info).
    13       uniq.
    13       uniq.
    14       sort { |a, b| a.name <=> b.name }
    14       sort { |a, b| a.name <=> b.name }
    15   end
    15   end
    16 
    16 
       
    17   def benchmark_batches_latest_for(benchmark_configuration)
       
    18     benchmark_batches.
       
    19       where(benchmark_configuration: benchmark_configuration)
       
    20   end
       
    21 
       
    22 
    17   def latest_results_for(benchmark_info, benchmark_configuration)
    23   def latest_results_for(benchmark_info, benchmark_configuration)
    18     benchmark_batches.
    24     benchmark_batches.
    19       joins(:benchmark_results).
    25       joins(:benchmark_results).
    20       where(benchmark_configuration: benchmark_configuration,
    26       where(benchmark_configuration: benchmark_configuration,
    21             benchmark_results: { benchmark_info: benchmark_info }).
    27             benchmark_results: { benchmark_info: benchmark_info }).