Class: UffizziCore::Api::Cli::V1::Accounts::ApplicationController

Inherits:
UffizziCore::Api::Cli::V1::ApplicationController
  • Object
show all
Defined in:
app/controllers/uffizzi_core/api/cli/v1/accounts/application_controller.rb

Instance Method Summary collapse

Instance Method Details

#policy_contextObject



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, , params)
end

#resource_accountObject



4
5
6
# File 'app/controllers/uffizzi_core/api/cli/v1/accounts/application_controller.rb', line 4

def 
  @resource_account ||= current_user.accounts.find(params[:account_id])
end