discourse/app/serializers/found_user_with_status_serializer.rb
2024-03-14 20:36:56 +04:00

22 lines
487 B
Ruby

# frozen_string_literal: true
class FoundUserWithStatusSerializer < FoundUserSerializer
include UserStatusMixin
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.3.0.beta1", drop_from: "3.3.0.beta2")
end
end