web/app/models/tag.rb
changeset 177 8e7f0029550d
parent 164 120a4f1e25c0
child 304 91286a87b569
--- a/web/app/models/tag.rb	Fri Aug 23 20:28:29 2013 +0100
+++ b/web/app/models/tag.rb	Sat Aug 24 00:18:50 2013 +0100
@@ -14,6 +14,12 @@
       sort { |a, b| a.name <=> b.name }
   end
 
+  def benchmark_batches_latest_for(benchmark_configuration)
+    benchmark_batches.
+      where(benchmark_configuration: benchmark_configuration)
+  end
+
+
   def latest_results_for(benchmark_info, benchmark_configuration)
     benchmark_batches.
       joins(:benchmark_results).