DEV: Deprecate FoundUserWithStatusSerializer (#25883)

A followup to b3a11994.
This commit is contained in:
Andrei Prigorshnev 2024-02-29 16:20:48 +00:00 committed by GitHub
parent 0a58b18970
commit 7aa3e15440
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 11 additions and 0 deletions

View File

@ -6,5 +6,16 @@ class FoundUserWithStatusSerializer < FoundUserSerializer
def initialize(object, options = {})
super
options[:include_status] = true
deprecated
end
private
def deprecated
message =
"FoundUserWithStatusSerializer is deprecated. " \
"Use FoundUserSerializer with the include_status option instead."
Discourse.deprecate(message, since: "3.2.0", drop_from: "3.3.0.beta1")
end
end