Skip to content
  • Yorick Peterse's avatar
    Ignore eager loading in Project.search UNION · 26b126f838c7
    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')
    26b126f838c7