From 083283906e59c5e6e74e31312f4cd72e16d22d21 Mon Sep 17 00:00:00 2001 From: evazion Date: Thu, 8 Aug 2019 14:00:46 -0500 Subject: [PATCH] application controller: remove unused secure_cookies_check. --- app/controllers/application_controller.rb | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 6d0edfab0..7d29f4103 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -11,7 +11,6 @@ class ApplicationController < ActionController::Base before_action :set_safe_mode before_action :set_variant before_action :track_only_param - # before_action :secure_cookies_check layout "default" helper_method :show_moderation_notice? before_action :enable_cors @@ -227,12 +226,4 @@ class ApplicationController < ActionController::Base def set_safe_mode CurrentUser.set_safe_mode(request) end - - def secure_cookies_check - if request.ssl? - Rails.application.config.session_store :cookie_store, :key => '_danbooru_session', :secure => true - else - Rails.application.config.session_store :cookie_store, :key => '_danbooru_session', :secure => false - end - end end