Fix some tests for changes in rails 5
[rails.git] / app / controllers / user_controller.rb
index b6fc79b25151db50f9f935699b21c7efc6d839c9..82373c90a791a7507977626967c25e1b2f2e5940 100644 (file)
@@ -268,7 +268,7 @@ class UserController < ApplicationController
   def logout
     @title = t "user.logout.title"
 
-    if params[:session] == request.session_options[:id]
+    if params[:session] == session.id
       if session[:token]
         token = UserToken.find_by(:token => session[:token])
         token.destroy if token