Method: AnyQuery::Query#joins!

Defined in:
lib/any_query/query.rb

#joins!(model, primary_key, foreign_key, into:, as: :single, strategy: :default) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



47
48
49
50
51
# File 'lib/any_query/query.rb', line 47

def joins!(model, primary_key, foreign_key, into:, as: :single, strategy: :default)
  @joins ||= []
  @joins << ({ model:, primary_key:, foreign_key:, into:, as:, strategy: })
  self
end