Shorten core extensions module names

This commit is contained in:
2026-11-18 23:04:55 +01:00
parent 83ca68a62f
commit 821ffb3551
14 changed files with 42 additions and 35 deletions
@@ -1,4 +1,4 @@
module CoreExt::Arel::CrudCteUpdateAndDelete
module CoreExt::Arel::Crud
def compile_update(...)
um = super
um.with = subqueries
@@ -1,4 +1,4 @@
module CoreExt::Arel::Nodes::DeleteStatementCteUpdateAndDelete
module CoreExt::Arel::Nodes::DeleteStatement
attr_accessor :with
def initialize(...)
@@ -1,4 +1,4 @@
module CoreExt::Arel::Nodes::UpdateStatementCteUpdateAndDelete
module CoreExt::Arel::Nodes::UpdateStatement
attr_accessor :with
def initialize(...)
+5
View File
@@ -0,0 +1,5 @@
module CoreExt::Arel::SelectManager
def subqueries
@ast.with
end
end
@@ -1,5 +0,0 @@
module CoreExt::Arel::SelectManagerCteUpdateAndDelete
def subqueries
@ast.with
end
end
@@ -0,0 +1,6 @@
module CoreExt::Arel::TreeManager::StatementMethods
def with=(expr)
@ast.with = expr
self
end
end
@@ -1,6 +0,0 @@
module CoreExt::Arel::TreeManager::StatementMethodsCteUpdateAndDelete
def with=(expr)
@ast.with = expr
self
end
end
@@ -1,4 +1,4 @@
module CoreExt::Arel::Visitors::ToSqlCteUpdateAndDelete
module CoreExt::Arel::Visitors::ToSql
def visit_Arel_Nodes_DeleteStatement(o, collector)
if o.with
collector = visit o.with, collector