Method: Rql::Scope::BlockMethods#joins

Defined in:
lib/rql/scope/block_methods.rb

#joins { ... } ⇒ Rql::Scope::RqlScope

Joins to the specified associated models

Yields:

  • RQL block defining the associations to join to

Returns:



40
41
42
# File 'lib/rql/scope/block_methods.rb', line 40

def joins(&block)
  scope.joins(*build_join_path(&block))
end