13 lines
279 B
Ruby
13 lines
279 B
Ruby
class Profiles::AccountsController < ApplicationController
|
|
layout "profile"
|
|
|
|
def show
|
|
@user = current_user
|
|
end
|
|
|
|
def unlink
|
|
provider = params[:provider]
|
|
current_user.identities.find_by(provider: provider).destroy
|
|
redirect_to profile_account_path
|
|
end
|
|
end
|