1
0

initial_state_presenter.rb 313 B

1234567891011
  1. # frozen_string_literal: true
  2. class InitialStatePresenter < ActiveModelSerializers::Model
  3. attributes :settings, :push_subscription, :token,
  4. :current_account, :admin, :owner, :text, :visibility,
  5. :disabled_account, :moved_to_account
  6. def role
  7. current_account&.user_role
  8. end
  9. end