s/redirect_to :back/redirect_back/

`redirect_to` has been removed in Rails 5.1 in favor of:

```
redirect_back(fallback_location: root_path)
```
This commit is contained in:
Ana María Martínez Gómez 2019-05-04 20:58:18 +02:00
parent ca32024268
commit 41d6fad7a5
No known key found for this signature in database
GPG key ID: EACB9B4BC80C0347
5 changed files with 6 additions and 7 deletions

View file

@ -6,6 +6,6 @@ class OpenidsController < ApplicationController
def destroy
@openid.destroy
redirect_to :back
redirect_back(fallback_location: root_path)
end
end