From a52f61405d88f48d0f0febfc803a3e888c6bc02a Mon Sep 17 00:00:00 2001 From: Mo Bitar Date: Sat, 16 Dec 2017 10:18:41 -0600 Subject: [PATCH] Remove unused function, closes #174 --- app/controllers/application_controller.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 19c58168c..76def86a7 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -8,7 +8,7 @@ class ApplicationController < ActionController::Base layout :false def frontend - set_app_domain + end rescue_from ActionView::MissingTemplate do |exception| @@ -20,10 +20,6 @@ class ApplicationController < ActionController::Base response.headers.except! 'X-Frame-Options' end - def set_app_domain - @appDomain = request.domain - @appDomain << ':' + request.port.to_s unless request.port.blank? - end def set_csrf_cookie cookies['XSRF-TOKEN'] = form_authenticity_token if protect_against_forgery? end