How would I join to a subselect (a scope) using Rails 3 and Arel?

后端 未结 1 504
别那么骄傲
别那么骄傲 2021-01-07 00:46

I need to join a table to the a select/group-by query (which includes the same table), and I\'d like to do it using Arel.

I have a table of :phenotypes

相关标签:
1条回答
  • 2021-01-07 01:04

    Just from an initial glance at your code: have you tried renaming the method and the local variable "orthogroups" to something different as you have a relationship by the same name?

    0 讨论(0)
提交回复
热议问题