mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 00:33:44 +08:00
62956003c3
A new settings section in the review queue allows admins to specify that certain types of flags should be weighted higher than others.
14 lines
265 B
Ruby
14 lines
265 B
Ruby
class ReviewableSettingsSerializer < ApplicationSerializer
|
|
attributes :id
|
|
|
|
has_many :reviewable_score_types, serializer: ReviewableScoreTypeSerializer
|
|
|
|
def id
|
|
scope.user.id
|
|
end
|
|
|
|
def reviewable_score_types
|
|
object[:reviewable_score_types]
|
|
end
|
|
end
|