Skip to content

Commit 2c79c87

Browse files
committed
WithChain does not exist in the codebase
1 parent 4c4c0ef commit 2c79c87

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

activerecord/lib/active_record/relation/query_methods.rb

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -486,12 +486,7 @@ def _select!(*fields) # :nodoc:
486486
def with(*args)
487487
raise ArgumentError, "ActiveRecord::Relation#with does not accept a block" if block_given?
488488
check_if_method_has_arguments!(__callee__, args)
489-
490-
if args.empty?
491-
WithChain.new(spawn)
492-
else
493-
spawn.with!(*args)
494-
end
489+
spawn.with!(*args)
495490
end
496491

497492
# Like #with, but modifies relation in place.

0 commit comments

Comments
 (0)