From 2bcd8787d37f41a31311e5ba7e69df91c519b741 Mon Sep 17 00:00:00 2001 From: Holger Just Date: Fri, 13 Apr 2012 13:44:16 +0200 Subject: [PATCH] Remove cookie cleaning method as it is not required anymore --- app/controllers/application_controller.rb | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index de47f042..a87ccc4e 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -31,18 +31,6 @@ class ApplicationController < ActionController::Base cookies.delete(:autologin) end - # Remove broken cookie after upgrade from 0.8.x (#4292) - # See https://rails.lighthouseapp.com/projects/8994/tickets/3360 - # TODO: remove it when Rails is fixed - before_filter :delete_broken_cookies - def delete_broken_cookies - if cookies['_chiliproject_session'] && cookies['_chiliproject_session'] !~ /--/ - cookies.delete '_chiliproject_session' - redirect_to home_path - return false - end - end - # FIXME: Remove this when all of Rack and Rails have learned how to # properly use encodings before_filter :params_filter