DEV: Deprecate FoundUserWithStatusSerializer (#25883)
A followup to b3a11994
.
This commit is contained in:
parent
0a58b18970
commit
7aa3e15440
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue