instance method
build_with
Ruby on Rails 7.2.3
Since v7.1.6 PrivateSignature
build_with(arel)
No documentation comment.
Parameters
-
arelreq
Source
# File activerecord/lib/active_record/relation/query_methods.rb, line 1897
def build_with(arel)
return if with_values.empty?
with_statements = with_values.map do |with_value|
build_with_value_from_hash(with_value)
end
@with_is_recursive ? arel.with(:recursive, with_statements) : arel.with(with_statements)
end
Defined in activerecord/lib/active_record/relation/query_methods.rb line 1897
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::QueryMethods