1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00

Use available warden_options method instead of env.

This commit is contained in:
Carlos Antonio da Silva 2010-02-19 09:07:37 -02:00
parent e9c16d852e
commit b3283e097d

View file

@ -22,7 +22,7 @@ module Devise
end
def respond
scope = env['warden.options'][:scope]
scope = warden_options[:scope]
store_location!(scope)
redirect_to send(:"new_#{scope}_session_path", query_string_params)
end