Class: UffizziCore::Api::Cli::V1::Accounts::ApplicationController
- Inherits:
-
UffizziCore::Api::Cli::V1::ApplicationController
- Object
- UffizziCore::Api::Cli::V1::ApplicationController
- UffizziCore::Api::Cli::V1::Accounts::ApplicationController
show all
- Defined in:
- app/controllers/uffizzi_core/api/cli/v1/accounts/application_controller.rb
Instance Method Summary
collapse
Instance Method Details
#policy_context ⇒ Object
8
9
10
|
# File 'app/controllers/uffizzi_core/api/cli/v1/accounts/application_controller.rb', line 8
def policy_context
UffizziCore::AccountContext.new(current_user, user_access_module, resource_account, params)
end
|
#resource_account ⇒ Object
4
5
6
|
# File 'app/controllers/uffizzi_core/api/cli/v1/accounts/application_controller.rb', line 4
def resource_account
@resource_account ||= current_user.accounts.find(params[:account_id])
end
|