Skip to content

Commit c8ea8ce

Browse files
authored
Migrate ActiveRecord::Normalization to Active Model (#1290)
1 parent c7f4cf5 commit c8ea8ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/active_record/connection_adapters/sqlserver/database_statements.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ def sp_executesql_types_and_parameters(binds)
337337

338338
def sp_executesql_sql_type(attr)
339339
if attr.respond_to?(:type)
340-
type = attr.type.is_a?(ActiveRecord::Normalization::NormalizedValueType) ? attr.type.cast_type : attr.type
340+
type = attr.type.is_a?(ActiveModel::Attributes::Normalization::NormalizedValueType) ? attr.type.cast_type : attr.type
341341
type = type.subtype if type.serialized?
342342

343343
return type.sqlserver_type if type.respond_to?(:sqlserver_type)

0 commit comments

Comments
 (0)