Sha256: 726379f4d1269ab10219cfa53bbae23689fa5616496ef134f322ec083ca5d9b0
Contents?: true
Size: 638 Bytes
Versions: 19
Compression:
Stored size: 638 Bytes
Contents
class Maestrano::Account::GroupsController < Maestrano::Rails::WebHookController # DELETE /maestrano/account/groups/cld-1/tenant # Delete an entire group def destroy # id org_uid = params[:id] # Get entity organization = Maestrano::Connector::Rails::Organization.find_by(uid: org_uid, tenant: params[:tenant] || 'default') Maestrano::Connector::Rails::ConnectorLogger.log('info', organization, 'delete organization') # Delete all relations organization.user_organization_rels.delete_all # Delete the organization organization.destroy # Respond render json: {success: true} end end
Version data entries
19 entries across 19 versions & 1 rubygems