2961: Changed index methods on some controllers to use render_index instead of
[arvados.git] / apps / workbench / app / controllers / sessions_controller.rb
index 488c67c3c2e8b51cfb8990b9148d7b3b4d0a7f13..591373b6c2c6526a85f26d5211ca8a94f1468ab0 100644 (file)
@@ -2,11 +2,14 @@ class SessionsController < ApplicationController
   skip_around_filter :thread_with_mandatory_api_token, :only => [:destroy, :index]
   skip_around_filter :thread_with_optional_api_token, :only => [:destroy, :index]
   skip_before_filter :find_object_by_uuid, :only => [:destroy, :index]
+
   def destroy
     session.clear
-    redirect_to $arvados_api_client.arvados_logout_url(return_to: root_url)
+    redirect_to arvados_api_client.arvados_logout_url(return_to: root_url)
   end
+
   def index
     redirect_to root_url if session[:arvados_api_token]
+    render_index
   end
 end