method
build_with
rails latest stable - Class:
ActiveRecord::QueryMethods
build_with(arel)private
No documentation available.
# File activerecord/lib/active_record/relation/query_methods.rb, line 1741
def build_with(arel)
return if with_values.empty?
with_statements = with_values.map do |with_value|
raise ArgumentError, "Unsupported argument type: #{with_value} #{with_value.class}" unless with_value.is_a?(Hash)
build_with_value_from_hash(with_value)
end
arel.with(with_statements)
end