98755844a1
* Bind sessions to identities * Remove references to the identity token * Move email changes to identity * Move account menu into a turbo-frame * Create tenants from a tenanted route
18 lines
369 B
Ruby
18 lines
369 B
Ruby
class Memberships::UnlinkController < ApplicationController
|
|
require_untenanted_access
|
|
before_action :set_membership
|
|
|
|
def show
|
|
end
|
|
|
|
def create
|
|
@membership.destroy
|
|
redirect_to session_menu_path
|
|
end
|
|
|
|
private
|
|
def set_membership
|
|
@membership = Current.identity.memberships.find_signed!(params[:membership_id], purpose: :unlinking)
|
|
end
|
|
end
|