discourse/app/serializers/screened_email_serializer.rb

13 lines
283 B
Ruby
Raw Normal View History

class ScreenedEmailSerializer < ApplicationSerializer
2013-08-01 21:30:13 -04:00
attributes :email,
:action,
:match_count,
:last_match_at,
:created_at,
:ip_address
2013-08-01 21:30:13 -04:00
def action
ScreenedEmail.actions.key(object.action_type).to_s
2013-08-01 21:30:13 -04:00
end
end