Module: Virtuatable::Helpers::Accounts
- Included in:
- Controllers::Base
- Defined in:
- lib/virtuatable/helpers/accounts.rb
Overview
These helpers provide methods used to get and check accounts.
Instance Method Summary collapse
-
#account ⇒ Object
Raises a bad request error if the account if not found.
- #account_id_not_found ⇒ Object
Instance Method Details
#account ⇒ Object
Raises a bad request error if the account if not found.
10 11 12 13 14 15 |
# File 'lib/virtuatable/helpers/accounts.rb', line 10 def account return @account unless @account.nil? session_id_required if !respond_to?(:session) || session.nil? @account = session.account end |
#account_id_not_found ⇒ Object
17 18 19 |
# File 'lib/virtuatable/helpers/accounts.rb', line 17 def account_id_not_found api_bad_request('session_id.required') end |