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:
parent
e9c16d852e
commit
b3283e097d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue