Allow user to remove openid

This commit is contained in:
Dimitris 2017-06-10 19:36:12 +03:00 committed by Stella Rouzi
parent 703dce4f5c
commit be72b9d02e
4 changed files with 19 additions and 2 deletions

View file

@ -0,0 +1,9 @@
class OpenidsController < ApplicationController
load_and_authorize_resource :user
load_and_authorize_resource through: :user
def destroy
@openid.destroy
redirect_to :back
end
end