Skip to content

Commit

Permalink
feat: add coder to serialize
Browse files Browse the repository at this point in the history
  • Loading branch information
yhru authored and ur5us committed Jan 19, 2024
1 parent 33d830f commit 1575d8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/public_activity/orm/active_record/activity.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1575d8c

Please sign in to comment.