Commit 24950c67b548a38d82826c42b4f4702cdf5c5dc4

Authored by Victor Costa
1 parent 36881c9e

rails3: change from request.request_uri to request.url

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/authenticated_system.rb
@@ -93,7 +93,7 @@ module AuthenticatedSystem @@ -93,7 +93,7 @@ module AuthenticatedSystem
93 # Store the URI of the current request in the session. 93 # Store the URI of the current request in the session.
94 # 94 #
95 # We can return to this location by calling #redirect_back_or_default. 95 # We can return to this location by calling #redirect_back_or_default.
96 - def store_location(location = request.request_uri) 96 + def store_location(location = request.url)
97 session[:return_to] = location 97 session[:return_to] = location
98 end 98 end
99 99