From 24950c67b548a38d82826c42b4f4702cdf5c5dc4 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Mon, 27 Jan 2014 14:43:40 -0300 Subject: [PATCH] rails3: change from request.request_uri to request.url --- lib/authenticated_system.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/authenticated_system.rb b/lib/authenticated_system.rb index ef90381..0b48db1 100644 --- a/lib/authenticated_system.rb +++ b/lib/authenticated_system.rb @@ -93,7 +93,7 @@ module AuthenticatedSystem # Store the URI of the current request in the session. # # We can return to this location by calling #redirect_back_or_default. - def store_location(location = request.request_uri) + def store_location(location = request.url) session[:return_to] = location end -- libgit2 0.21.2