Patch ActiveRecord with PR 54658

This commit is contained in:
2025-03-22 14:14:42 +01:00
parent 8401424efa
commit 4c867daabb
8 changed files with 87 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
module CoreExt::Arel::Nodes::DeleteStatementCteUpdateAndDelete
attr_accessor :with
def initialize(...)
super
@with = nil
end
def hash
[self.class, @relation, @wheres, @orders, @limit, @offset, @key, @with].hash
end
def eql?(other)
eql?(other) && self.with == other.with
end
end

View File

@@ -0,0 +1,16 @@
module CoreExt::Arel::Nodes::UpdateStatementCteUpdateAndDelete
attr_accessor :with
def initialize(...)
super
@with = nil
end
def hash
[self.class, @relation, @wheres, @orders, @limit, @offset, @key, @with].hash
end
def eql?(other)
eql?(other) && self.with == other.with
end
end