From 4052fad9e00c6b5cbfb10410afcc7c3a3c8fe589 Mon Sep 17 00:00:00 2001 From: mlorb Date: Fri, 23 Nov 2018 15:51:18 +0100 Subject: [PATCH] fix hound --- config/initializers/devise.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb index da5780151..f9a9d0694 100644 --- a/config/initializers/devise.rb +++ b/config/initializers/devise.rb @@ -315,9 +315,10 @@ Devise.setup do |config| # so you need to do it manually. For the users scope, it would be: # config.omniauth_path_prefix = '/my_engine/users/auth' - Warden::Manager.before_failure do |env, opts| + Warden::Manager.before_failure do |env, _opts| if env.key?('action_controller.instance') && - (cont = env['action_controller.instance']).instance_of?(Doorkeeper::AuthorizationsController) && + (cont = env['action_controller.instance']) + .instance_of?(Doorkeeper::AuthorizationsController) && cont.action_name == 'new' # pass oauth_authorize param env['rack.session'] ||= {}