Revamp notification policy options (#31343)

This commit is contained in:
Claire authored and GitHub committed 2024-08-09 13:30:55 +00:00
1 parent e29c401f77
commit cbdd8edf68
16 files changed
+442 -109

No files matched your search

@@ -8,12 +8,12 @@ class Api::V1::Notifications::PoliciesController < Api::BaseController
before_action :set_policy
def show
render json: @policy, serializer: REST::NotificationPolicySerializer
render json: @policy, serializer: REST::V1::NotificationPolicySerializer
end
def update
@policy.update!(resource_params)
render json: @policy, serializer: REST::NotificationPolicySerializer
render json: @policy, serializer: REST::V1::NotificationPolicySerializer
end
private