Class: ForemanOrchestration::TenantsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ForemanOrchestration::TenantsController
- Defined in:
- app/controllers/foreman_orchestration/tenants_controller.rb
Instance Method Summary collapse
Instance Method Details
#default ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'app/controllers/foreman_orchestration/tenants_controller.rb', line 11 def default tenant = @compute_resource.orchestration_client_for(params[:id]) @compute_resource.default_tenant_id = tenant.id @compute_resource.save! respond_to do |format| format.json { render :json => {}, :status => :ok } end end |
#for_select ⇒ Object
6 7 8 9 |
# File 'app/controllers/foreman_orchestration/tenants_controller.rb', line 6 def for_select @tenants = @compute_resource.tenants render partial: 'for_select' end |