View on GitHub
Combine with other relations using configured associations
@overload combine(*associations)
@example
users.combine(:tasks, :posts)
@param *associations [Array<Symbol>] A list of association names
@overload combine(*associations, **nested_associations)
@example
users.combine(:tasks, posts: :authors)
@param *associations [Array<Symbol>] A list of association names
@param *nested_associations [Hash] A hash with nested association names
@overload combine(associations)
@example
users.combine(posts: [:authors, reviews: [:tags, comments: :author])
@param *associations [Hash] A hash with nested association names
@return [Relation]
@api public