mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Be more generic on TestHelpers.
This commit is contained in:
parent
ed22295963
commit
290cfd1f72
1 changed files with 2 additions and 1 deletions
|
@ -40,7 +40,8 @@ module Devise
|
|||
Warden::Manager._before_failure.each{ |hook| hook.call(env, result) }
|
||||
|
||||
status, headers, body = Devise::FailureApp.call(env).to_a
|
||||
@controller.send :redirect_to, headers["Location"]
|
||||
@controller.send :render, :status => status, :text => body,
|
||||
:content_type => headers["Content-Type"], :location => headers["Location"]
|
||||
else
|
||||
result
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue