discourse/app/serializers/reviewable_score_bonus_seri...

8 lines
178 B
Ruby

class ReviewableScoreBonusSerializer < ApplicationSerializer
attributes :id, :name, :score_bonus
def name
I18n.t("post_action_types.#{object.name_key}.title")
end
end