Warden before_failure hooks are an array, not a proc
This commit is contained in:
parent
1cdb02bd54
commit
1a2590dc08
|
@ -44,7 +44,7 @@ module Devise
|
|||
env = @controller.request.env
|
||||
env["PATH_INFO"] = "/#{result[:action]}"
|
||||
env["warden.options"] = result
|
||||
Warden::Manager._before_failure.each{ |hook| hook.call(env, result) }
|
||||
Warden::Manager._before_failure.each{ |hook| hook.first.call(env, result) }
|
||||
|
||||
status, headers, body = Devise::FailureApp.call(env).to_a
|
||||
@controller.send :render, :status => status, :text => body,
|
||||
|
|
Loading…
Reference in New Issue