method

build_with

Importance_0
v8.0.0 - Show latest stable - 0 notes - Class: ActiveRecord::QueryMethods
build_with(arel) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/relation/query_methods.rb, line 1913
      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
Register or log in to add new notes.