mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-21 14:20:13 +08:00
Allow admin to create custom flag which requires an additional message. I decided to rename the old `custom_flag` into `require_message` as it is more descriptive.
5 lines
181 B
Ruby
Vendored
5 lines
181 B
Ruby
Vendored
# frozen_string_literal: true
|
|
|
|
class FlagSerializer < ApplicationSerializer
|
|
attributes :id, :name, :name_key, :description, :applies_to, :position, :require_message, :enabled
|
|
end
|