mirror of
https://github.com/discourse/discourse.git
synced 2025-04-28 14:04:35 +08:00
DEV: Remove unused user_auth_token_log_serializer
Usage was removed in f2331ef07f527b58f980e461edf79041ce6f64f1
This commit is contained in:
parent
119c4d0c1b
commit
b6e08c06c5
@ -1,18 +0,0 @@
|
|||||||
# frozen_string_literal: true
|
|
||||||
|
|
||||||
class UserAuthTokenLogSerializer < ApplicationSerializer
|
|
||||||
include UserAuthTokensMixin
|
|
||||||
|
|
||||||
attributes :action
|
|
||||||
|
|
||||||
def action
|
|
||||||
case object.action
|
|
||||||
when 'generate'
|
|
||||||
I18n.t('log_in')
|
|
||||||
when 'destroy'
|
|
||||||
I18n.t('unsubscribe.log_out')
|
|
||||||
else
|
|
||||||
I18n.t('staff_action_logs.unknown')
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
Loading…
x
Reference in New Issue
Block a user