Improve CHANGELOG and move assignment to outside the `if` statement.
This commit is contained in:
parent
13a8ad81ee
commit
1ad09f9cfc
|
@ -16,7 +16,7 @@
|
||||||
calling `super`
|
calling `super`
|
||||||
* Serialize the `last_request_at` entry as an Integer
|
* Serialize the `last_request_at` entry as an Integer
|
||||||
* Ensure registration controller block yields happen on failure in addition to success (by @dpehrson)
|
* Ensure registration controller block yields happen on failure in addition to success (by @dpehrson)
|
||||||
* Storing location only for valid url (by @parallel588)
|
* Only valid paths will be stored for redirections (by @parallel588)
|
||||||
|
|
||||||
### 3.2.4
|
### 3.2.4
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,8 @@ module Devise
|
||||||
#
|
#
|
||||||
def store_location_for(resource_or_scope, location)
|
def store_location_for(resource_or_scope, location)
|
||||||
session_key = stored_location_key_for(resource_or_scope)
|
session_key = stored_location_key_for(resource_or_scope)
|
||||||
if (uri = parse_uri(location))
|
uri = parse_uri(location)
|
||||||
|
if uri
|
||||||
session[session_key] = [uri.path.sub(/\A\/+/, '/'), uri.query].compact.join('?')
|
session[session_key] = [uri.path.sub(/\A\/+/, '/'), uri.query].compact.join('?')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue