mirror of
https://github.com/openSUSE/osem.git
synced 2026-01-14 09:00:40 -05:00
`redirect_to` has been removed in Rails 5.1 in favor of: ``` redirect_back(fallback_location: root_path) ```
12 lines
253 B
Ruby
12 lines
253 B
Ruby
# frozen_string_literal: true
|
|
|
|
class OpenidsController < ApplicationController
|
|
load_and_authorize_resource :user
|
|
load_and_authorize_resource through: :user
|
|
|
|
def destroy
|
|
@openid.destroy
|
|
redirect_back(fallback_location: root_path)
|
|
end
|
|
end
|