Skip to content

Commit 5012e0d

Browse files
yhruur5us
authored andcommitted
feat: add coder to serialize
1 parent 33d830f commit 5012e0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/public_activity/orm/active_record/activity.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class Activity < ::ActiveRecord::Base
3939
# Serialize parameters Hash
4040
begin
4141
if table_exists?
42-
serialize :parameters, Hash unless %i[json jsonb hstore].include?(columns_hash['parameters'].type)
42+
serialize :parameters, coder: YAML, type: Hash unless %i[json jsonb hstore].include?(columns_hash['parameters'].type)
4343
else
4444
warn("[WARN] table #{name} doesn't exist. Skipping PublicActivity::Activity#parameters's serialization")
4545
end

0 commit comments

Comments
 (0)