A simple change that clears out the session[:return_to_url] after a redirect_back_or_to.  That way you can use the redirect_back_or_to method later in the session for a different page without being always sent back to the original page they were trying to reach before authentication.
A simple change that clears out the session[:return_to_url] after a redirect_back_or_to.  That way you can use the redirect_back_or_to method later in the session for a different page without being always sent back to the original page they were trying to reach before authentication.
NoamB/sorcery,Sorcery/sorcery,jshum/sorcery,kristianmandrup/sorcery,jshum/sorcery,trustyknave/sorcery,trustyknave/sorcery,jerefrer/sorcery,ikhakoo/sorcery,Sology/sorcery,alexanderedge/sorcery,webgago/sorcery,Sorcery/sorcery,athix/sorcery,creepycheese/sorcery,alexanderedge/sorcery,wendy0402/sorcery,jerefrer/sorcery,athix/sorcery,Sology/sorcery,Sorcery/sorcery,wendy0402/sorcery,athix/sorcery,wasabia/bnbtripSorcery,Borzik/sorcery,Borzik/sorcery,kristianmandrup/sorcery,ikhakoo/sorcery,NoamB/sorcery,rubenmoya/sorcery,wasabia/bnbtripSorcery,creepycheese/sorcery,webgago/sorcery,rubenmoya/sorcery