• Yorick Peterse's avatar
    Ignore eager loading in Project.search UNION · c7427602
    Yorick Peterse authored
    The queries that are UNION'd together don't need any eager loading
    (since we really only use the resulting SQL instead of having
    ActiveRecord actually run the queries). By dropping any eager loaded
    associations queries such as the following work instead of producing a
    SQL error:
    
        Project.all.includes(:namespace).search('foo')
    c7427602
project.rb 28.2 KB