Class: Profiles::AccountsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/profiles/accounts_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject


2
3
4
# File 'app/controllers/profiles/accounts_controller.rb', line 2

def show
  @user = current_user
end

6
7
8
9
10
# File 'app/controllers/profiles/accounts_controller.rb', line 6

def unlink
  provider = params[:provider]
  current_user.identities.find_by(provider: provider).destroy
  redirect_to 
end