initial_state_presenter.rb 254 B

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