2015-09-11 14:41:01 +05:30
|
|
|
class Profiles::AccountsController < Profiles::ApplicationController
|
2014-09-02 18:07:02 +05:30
|
|
|
def show
|
|
|
|
@user = current_user
|
|
|
|
end
|
2015-04-26 12:48:37 +05:30
|
|
|
|
|
|
|
def unlink
|
|
|
|
provider = params[:provider]
|
|
|
|
current_user.identities.find_by(provider: provider).destroy
|
|
|
|
redirect_to profile_account_path
|
|
|
|
end
|
2014-09-02 18:07:02 +05:30
|
|
|
end
|