Fix the redirect_user_back_after_login method
Fix the redirect_user_back_after_login method

This method also verify if the request made is an ajax request, but the .xhr? method returns 0 when this condition is true. So, even ajax requests was updating the session[:return_to].

juntos-com-vc/juntos.com.vc,engageis/juntos.com.vc,engageis/juntos.com.vc,engageis/juntos.com.vc,juntos-com-vc/juntos.com.vc,juntos-com-vc/juntos.com.vc