From c8ea8ce506465105c9336f94067245fe0862e279 Mon Sep 17 00:00:00 2001 From: Aidan Haran Date: Thu, 9 Jan 2025 15:58:30 +0000 Subject: [PATCH] Migrate ActiveRecord::Normalization to Active Model (#1290) --- .../connection_adapters/sqlserver/database_statements.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/active_record/connection_adapters/sqlserver/database_statements.rb b/lib/active_record/connection_adapters/sqlserver/database_statements.rb index 8c99de570..7857b6eae 100644 --- a/lib/active_record/connection_adapters/sqlserver/database_statements.rb +++ b/lib/active_record/connection_adapters/sqlserver/database_statements.rb @@ -337,7 +337,7 @@ def sp_executesql_types_and_parameters(binds) def sp_executesql_sql_type(attr) if attr.respond_to?(:type) - type = attr.type.is_a?(ActiveRecord::Normalization::NormalizedValueType) ? attr.type.cast_type : attr.type + type = attr.type.is_a?(ActiveModel::Attributes::Normalization::NormalizedValueType) ? attr.type.cast_type : attr.type type = type.subtype if type.serialized? return type.sqlserver_type if type.respond_to?(:sqlserver_type)