diff options
author | Claire <claire.github-309c@sitedethib.com> | 2024-04-26 10:07:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-26 10:07:34 +0200 |
commit | 31e3cac2c9f8b7252e0778e1b21e38c764aef1de (patch) | |
tree | f5dbacc1e628d003726aa6628e434f5c33593d9d | |
parent | a50b87119662024362931d566a40dca58d35cae9 (diff) |
Apply suggestions from code reviewrecursive-cte-grouped-notifications
Co-authored-by: Eugen Rochko <eugen@zeonfederated.com>
-rw-r--r-- | app/serializers/rest/notification_group_serializer.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/serializers/rest/notification_group_serializer.rb b/app/serializers/rest/notification_group_serializer.rb index 5d4fff06106..2c7773f2d3d 100644 --- a/app/serializers/rest/notification_group_serializer.rb +++ b/app/serializers/rest/notification_group_serializer.rb @@ -1,9 +1,9 @@ # frozen_string_literal: true class REST::NotificationGroupSerializer < ActiveModel::Serializer - attributes :group_key, :notifications_count, :sample_accounts, :type, :group_key + attributes :group_key, :notifications_count, :type - has_many :sample_accounts, serialized: REST::AccountSerializer + has_many :sample_accounts, serializer: REST::AccountSerializer belongs_to :target_status, key: :status, if: :status_type?, serializer: REST::StatusSerializer belongs_to :report, if: :report_type?, serializer: REST::ReportSerializer belongs_to :account_relationship_severance_event, key: :event, if: :relationship_severance_event?, serializer: REST::AccountRelationshipSeveranceEventSerializer |