mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Add ScreenedUrl. Rename BlockedEmail to ScreenedEmail.
This commit is contained in:
11
app/serializers/screened_email_serializer.rb
Normal file
11
app/serializers/screened_email_serializer.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
class ScreenedEmailSerializer < ApplicationSerializer
|
||||
attributes :email,
|
||||
:action,
|
||||
:match_count,
|
||||
:last_match_at,
|
||||
:created_at
|
||||
|
||||
def action
|
||||
ScreenedEmail.actions.key(object.action_type).to_s
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user