From b824bd55ff9e4e6428e027198c4d640000849b9a Mon Sep 17 00:00:00 2001 From: "max.jos" <48556853+yhru@users.noreply.github.com> Date: Thu, 4 Jan 2024 09:58:37 +0000 Subject: [PATCH 1/4] feat: add coder to serialize --- lib/public_activity/orm/active_record/activity.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/public_activity/orm/active_record/activity.rb b/lib/public_activity/orm/active_record/activity.rb index dd33983..e807189 100644 --- a/lib/public_activity/orm/active_record/activity.rb +++ b/lib/public_activity/orm/active_record/activity.rb @@ -39,7 +39,7 @@ class Activity < ::ActiveRecord::Base # Serialize parameters Hash begin if table_exists? - serialize :parameters, Hash unless %i[json jsonb hstore].include?(columns_hash['parameters'].type) + serialize :parameters, coder: YAML, type: Hash unless %i[json jsonb hstore].include?(columns_hash['parameters'].type) else warn("[WARN] table #{name} doesn't exist. Skipping PublicActivity::Activity#parameters's serialization") end From 6815d961f42c814eac338327f47971d71a271995 Mon Sep 17 00:00:00 2001 From: "max.jos" <48556853+yhru@users.noreply.github.com> Date: Mon, 8 Jan 2024 17:47:05 +0100 Subject: [PATCH 2/4] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ef5a534..d8122e6 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,9 @@ recorded activities to users - similarly to how GitHub does it. ## Rails 7 -**As of version 2.0.0, public_activity also supports Rails up to 7.0.** +FORK UPDATED 7.1.2 + +**As of version 2.0.0, public_activity also supports Rails up to 7.1.2** ## Table of contents From 3279bde996e54210d9e79e0e217ed33e634992bf Mon Sep 17 00:00:00 2001 From: "max.jos" <48556853+yhru@users.noreply.github.com> Date: Tue, 9 Jan 2024 14:33:58 +0100 Subject: [PATCH 3/4] Update README.md --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index d8122e6..2a07a5a 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,6 @@ recorded activities to users - similarly to how GitHub does it. ## Rails 7 -FORK UPDATED 7.1.2 - **As of version 2.0.0, public_activity also supports Rails up to 7.1.2** ## Table of contents From 4791ab1f6a1a6c17d96e15a4612294e525f4aad5 Mon Sep 17 00:00:00 2001 From: "max.jos" <48556853+yhru@users.noreply.github.com> Date: Fri, 19 Jan 2024 14:08:45 +0100 Subject: [PATCH 4/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 80db9c7..e1a476b 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ recorded activities to users - similarly to how GitHub does it. ## Rails 7 -**As of version 2.0.0, public_activity also supports Rails up to 7.1.2** +**As of version 2.0.0, public_activity also supports Rails up to 7.0.** ## Table of contents