1
0
Fork 0
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:
José Valim 2010-06-13 11:09:59 +02:00
parent ed22295963
commit 290cfd1f72

View file

@ -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