From 724d421f4410297cedad8d2c2d2c1f94ef9e46b9 Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Tue, 19 Jun 2018 20:50:02 +0300 Subject: [PATCH] Remove Devise FailureApp --- lib/devise_custom_failure.rb | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 lib/devise_custom_failure.rb diff --git a/lib/devise_custom_failure.rb b/lib/devise_custom_failure.rb deleted file mode 100644 index a8a947173..000000000 --- a/lib/devise_custom_failure.rb +++ /dev/null @@ -1,18 +0,0 @@ -class DeviseCustomFailure < Devise::FailureApp - def redirect_url - return registrant_login_url if request.original_fullpath.to_s.match(%r{^\/registrant}) - return registrar_login_url if request.original_fullpath.to_s.match(%r{^\/registrar}) - return '/admin' if request.original_fullpath.to_s.match(%r{^\/admin\/que}) - return admin_login_url if request.original_fullpath.to_s.match(%r{^\/admin}) - root_url - end - - # You need to override respond to eliminate recall - def respond - if http_auth? - http_auth - else - redirect - end - end -end