diff --git a/lib/patches/active_record/rails7_1/serialization.rb b/lib/patches/active_record/rails7_1/serialization.rb index 0604cbfd..9d5f17de 100644 --- a/lib/patches/active_record/rails7_1/serialization.rb +++ b/lib/patches/active_record/rails7_1/serialization.rb @@ -10,7 +10,7 @@ def serialize(attr_name, class_name_or_coder = Object, **options) super(attr_name, **options) - coder = if options[:coder] == ::YAML || options[:coder] == Coders::YAMLColumn + coder = if options[:coder] == ::YAML || options[:coder] == ::ActiveRecord::Coders::YAMLColumn options[:coder] else build_column_serializer(attr_name, options[:coder], options[:type], options[:yaml])