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