2017-07-08 12:51:05 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class InitialStatePresenter < ActiveModelSerializers::Model
|
2017-08-14 02:53:31 +00:00
|
|
|
attributes :settings, :push_subscription, :token,
|
2020-06-08 22:16:30 +00:00
|
|
|
:current_account, :admin, :text, :visibility
|
2022-07-05 00:41:40 +00:00
|
|
|
|
|
|
|
def role
|
|
|
|
current_account&.user_role
|
|
|
|
end
|
2017-07-08 12:51:05 +00:00
|
|
|
end
|