forked from fixin.me/fixin.me
Shorten core extensions module names
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
module CoreExt::Arel::CrudCteUpdateAndDelete
|
||||
module CoreExt::Arel::Crud
|
||||
def compile_update(...)
|
||||
um = super
|
||||
um.with = subqueries
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
module CoreExt::Arel::Nodes::DeleteStatementCteUpdateAndDelete
|
||||
module CoreExt::Arel::Nodes::DeleteStatement
|
||||
attr_accessor :with
|
||||
|
||||
def initialize(...)
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
module CoreExt::Arel::Nodes::UpdateStatementCteUpdateAndDelete
|
||||
module CoreExt::Arel::Nodes::UpdateStatement
|
||||
attr_accessor :with
|
||||
|
||||
def initialize(...)
|
||||
@@ -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
-1
@@ -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
|
||||
Reference in New Issue
Block a user