Skip to content

Commit

Permalink
WithChain does not exist in the codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
kamipo committed May 2, 2024
1 parent 4c4c0ef commit 2c79c87
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions activerecord/lib/active_record/relation/query_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -486,12 +486,7 @@ def _select!(*fields) # :nodoc:
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.
Expand Down

0 comments on commit 2c79c87

Please sign in to comment.