discourse/app/serializers/found_user_with_status_serializer.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
487 B
Ruby
Raw Normal View History

# 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