From c27ffa9fbf41b49547c0e4b91e6654861ed973f9 Mon Sep 17 00:00:00 2001 From: zmagod Date: Tue, 26 Jul 2016 08:44:09 +0200 Subject: [PATCH] fixed project_my_module method --- app/models/project.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/project.rb b/app/models/project.rb index 45600b7b1..90afb25d3 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -105,7 +105,7 @@ class Project < ActiveRecord::Base end def project_my_modules - experiments.collect{ |exp| exp.my_modules }.first + MyModule.where('"experiment_id" IN (?)', experiments.select(:id)) end def space_taken