From aa9035b1aa397f4b57038525a6483980ef3ac770 Mon Sep 17 00:00:00 2001 From: James Woodrow Date: Sun, 12 Nov 2023 17:24:46 +0100 Subject: [PATCH] need the namespace --- lib/patches/active_record/rails7_1/serialization.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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])