discourse/app/serializers/reviewable_score_bonus_seri...

8 lines
178 B
Ruby
Raw Normal View History

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