mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 08:24:05 +08:00
12 lines
257 B
Ruby
12 lines
257 B
Ruby
class BlockedEmailSerializer < ApplicationSerializer
|
|
attributes :email,
|
|
:action,
|
|
:match_count,
|
|
:last_match_at,
|
|
:created_at
|
|
|
|
def action
|
|
BlockedEmail.actions.key(object.action_type).to_s
|
|
end
|
|
end
|