Remove needless join from MyModuleGroup

This commit is contained in:
Jure Grabnar 2016-07-27 10:18:57 +02:00
parent 77ed1c5fd3
commit 1a1c4bb68a

View file

@ -30,7 +30,6 @@ class MyModuleGroup < ActiveRecord::Base
new_query = MyModuleGroup
.distinct
.joins(:experiment)
.where("my_module_groups.experiment_id IN (?)", exp_ids)
.where_attributes_like("my_module_groups.name", a_query)