WithChain does not exist in the codebase

This commit is contained in:
Ryuta Kamizono 2024-05-02 21:09:28 +09:00
parent 4c4c0ef389
commit 2c79c87a19
1 changed files with 1 additions and 6 deletions

View File

@ -486,12 +486,7 @@ module ActiveRecord
def with(*args)
raise ArgumentError, "ActiveRecord::Relation#with does not accept a block" if block_given?
check_if_method_has_arguments!(__callee__, args)
if args.empty?
WithChain.new(spawn)
else
spawn.with!(*args)
end
spawn.with!(*args)
end
# Like #with, but modifies relation in place.