fix hound

This commit is contained in:
mlorb 2018-11-23 15:51:18 +01:00
parent f61187dd18
commit 4052fad9e0

View file

@ -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'] ||= {}