Rails named_scopes with joins

前端 未结 2 1261
被撕碎了的回忆
被撕碎了的回忆 2021-02-12 13:53

I\'m trying to create a named_scope that uses a join, but although the generated SQL looks right, the result are garbage. For example:

class Clip < ActiveReco         


        
2条回答
  •  广开言路
    2021-02-12 14:04

    This is a bug:

    http://rails.lighthouseapp.com/projects/8994/tickets/1077-chaining-scopes-with-duplicate- joins-causes-alias-problem

提交回复
热议问题