mirror of
https://github.com/discourse/discourse.git
synced 2025-03-04 08:54:27 +08:00

Includes support for flags, reviewable users and queued posts, with REST API backwards compatibility. Co-Authored-By: romanrizzi <romanalejandro@gmail.com> Co-Authored-By: jjaffeux <j.jaffeux@gmail.com>
9 lines
221 B
Ruby
9 lines
221 B
Ruby
class ReviewableBundledActionSerializer < ApplicationSerializer
|
|
attributes :id, :icon, :label
|
|
has_many :actions, serializer: ReviewableActionSerializer, root: 'actions'
|
|
|
|
def label
|
|
I18n.t(object.label)
|
|
end
|
|
end
|