Add ScreenedUrl. Rename BlockedEmail to ScreenedEmail.

This commit is contained in:
Neil Lalonde
2013-08-14 11:05:53 -04:00
parent 8fa9c51bf4
commit 86647f0a54
23 changed files with 251 additions and 90 deletions

View 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