Module: PrxAuth::Rails::AccountInfo

Included in:
Controller
Defined in:
lib/prx_auth/rails/ext/controller/account_info.rb

Constant Summary collapse

PRX_ACCOUNT_MAPPING_SESSION_KEY =
"prx.auth.account.mapping".freeze

Instance Method Summary collapse

Instance Method Details

#account_for(account_id) ⇒ Object



12
13
14
# File 'lib/prx_auth/rails/ext/controller/account_info.rb', line 12

def ()
  lookup_accounts([]).first
end

#account_name_for(account_id) ⇒ Object



8
9
10
# File 'lib/prx_auth/rails/ext/controller/account_info.rb', line 8

def ()
  ().try(:[], "name")
end

#accounts_for(account_ids) ⇒ Object



16
17
18
# File 'lib/prx_auth/rails/ext/controller/account_info.rb', line 16

def accounts_for()
  lookup_accounts()
end