forked from fixin.me/fixin.me
Shorten core extensions module names
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
module CoreExt::ActionDispatch::SystemTesting::TestHelpers::ScreenshotHelperUniqueId
|
||||
module CoreExt::ActionDispatch::SystemTesting::TestHelpers::ScreenshotHelper
|
||||
private
|
||||
|
||||
def unique
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
module CoreExt::ActiveModel::Validations::NumericalityValidatesPrecision
|
||||
module CoreExt::ActiveModel::Validations::NumericalityValidator
|
||||
def validate_each(record, attr_name, value, **kwargs)
|
||||
super(record, attr_name, value, **kwargs)
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
module CoreExt::ActiveRecord::Relation
|
||||
INVALID_METHODS_FOR_UPDATE_AND_DELETE_ALL = [:distinct]
|
||||
end
|
||||
@@ -1,3 +0,0 @@
|
||||
module CoreExt::ActiveRecord::Relation::UpdateAndDeleteCteSupport
|
||||
INVALID_METHODS_FOR_UPDATE_AND_DELETE_ALL = [:distinct]
|
||||
end
|
||||
@@ -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::UpdateStatementCteUpdateAndDelete
|
||||
module CoreExt::Arel::Nodes::DeleteStatement
|
||||
attr_accessor :with
|
||||
|
||||
def initialize(...)
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
module CoreExt::Arel::Nodes::DeleteStatementCteUpdateAndDelete
|
||||
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
|
||||
@@ -1,4 +1,4 @@
|
||||
module CoreExt::XPath::DSL::NormalizeSpaceDefault
|
||||
module CoreExt::XPath::DSL
|
||||
def normalize_space(...)
|
||||
Capybara.default_normalize_ws ? super : current
|
||||
end
|
||||
Reference in New Issue
Block a user