Sha256: 6eed085ba76da9aa534b2387bdab4146c6b8bb22a5f85cb81bbd1fbf80830749
Contents?: true
Size: 585 Bytes
Versions: 28
Compression:
Stored size: 585 Bytes
Contents
class Maestrano::Account::GroupsController < Maestrano::Rails::WebHookController # DELETE /maestrano/account/groups/cld-1 # DELETE /maestrano/account/groups/cld-1/tenant # Delete an entire group def destroy # id group_uid = params[:id] # Get entity organization = Organization.find_by_provider_and_uid_and_tenant('maestrano', group_uid, params[:tenant]) # Delete all relations organization.user_company_rels.delete_all # Delete the organization organization.destroy # Respond render json: {success: true} end end
Version data entries
28 entries across 28 versions & 1 rubygems