From 6a7c30128b61828ed3af8c11c11e386cf4d24651 Mon Sep 17 00:00:00 2001 From: Guillaume Dott Date: Tue, 24 Sep 2024 16:28:08 +0200 Subject: [PATCH] Add coder to serialize --- lib/the_moderator/moderation_model.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/the_moderator/moderation_model.rb b/lib/the_moderator/moderation_model.rb index 6e0c07f..cd602f4 100644 --- a/lib/the_moderator/moderation_model.rb +++ b/lib/the_moderator/moderation_model.rb @@ -6,8 +6,8 @@ module TheModerator included do belongs_to :moderatable, polymorphic: true - serialize :data - serialize :data_display + serialize :data, coder: YAML + serialize :data_display, coder: YAML end module ClassMethods