osem-fcy/app/controllers/openids_controller.rb

12 lines
253 B
Ruby
Raw Permalink Normal View History

# frozen_string_literal: true
2017-06-10 19:36:12 +03:00
class OpenidsController < ApplicationController
load_and_authorize_resource :user
load_and_authorize_resource through: :user
def destroy
@openid.destroy
redirect_back(fallback_location: root_path)
2017-06-10 19:36:12 +03:00
end
end