Method: Rql::Scope::BlockMethods#includes

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

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

Includes the specified associated models

Yields:

  • RQL block defining the associations to include

Returns:



48
49
50
# File 'lib/rql/scope/block_methods.rb', line 48

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