Files
osem/app/controllers/openids_controller.rb
Ana María Martínez Gómez 41d6fad7a5 s/redirect_to :back/redirect_back/
`redirect_to` has been removed in Rails 5.1 in favor of:

```
redirect_back(fallback_location: root_path)
```
2019-05-05 09:40:50 +02:00

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