Skip to content

Commit

Permalink
Remove redundant, broken RedirectBackError rescue
Browse files Browse the repository at this point in the history
Replacement of `redirect :back` with `redirect_back` with an option
for `fallback_location:` meant this rescue was already unnecessary in
Rails 5.0.
  • Loading branch information
myabc committed Apr 19, 2018
1 parent 9833b7e commit 75582d0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions app/controllers/authentications_controller.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
class AuthenticationsController < ApplicationController
skip_before_action :authenticate_user!

rescue_from ActionController::RedirectBackError do |exception|
redirect_to edit_user_registration_path
end

def create
omniauth = request.env['omniauth.auth']
provider, uid = omniauth.values_at('provider', 'uid')
Expand Down

0 comments on commit 75582d0

Please sign in to comment.