--- a/web/app/models/compare_query.rb Mon Jun 24 22:59:28 2013 +0200
+++ b/web/app/models/compare_query.rb Tue Jun 25 22:11:10 2013 +0200
@@ -1,15 +1,15 @@
class CompareQuery
include ActiveModel::Model
- attr_accessor :benchmark_id, :implementations
+ attr_accessor :benchmark_id, :runtimes
def initialize(*args)
super
- @implementations ||= {}
+ @runtimes ||= {}
end
- def filtered_implementations
- LanguageImplementation.where(id: impls_to_array_of_ids)
+ def filtered_runtimes
+ Runtime.where(id: runtimes_to_array_of_ids)
end
def benchmark_info
@@ -18,7 +18,7 @@
private
- def impls_to_array_of_ids
- implementations.keys
+ def runtimes_to_array_of_ids
+ runtimes.keys
end
end