2015-04-30 13:06:18 -04:00
|
|
|
class Profiles::AccountsController < Profiles::ApplicationController
|
2013-10-09 09:37:18 -04:00
|
|
|
def show
|
|
|
|
@user = current_user
|
|
|
|
end
|
2015-03-21 20:44:40 -04:00
|
|
|
|
|
|
|
def unlink
|
|
|
|
provider = params[:provider]
|
|
|
|
current_user.identities.find_by(provider: provider).destroy
|
|
|
|
redirect_to profile_account_path
|
|
|
|
end
|
2013-10-09 09:37:18 -04:00
|
|
|
end
|