Remove unused function, closes #174
This commit is contained in:
@@ -8,7 +8,7 @@ class ApplicationController < ActionController::Base
|
|||||||
layout :false
|
layout :false
|
||||||
|
|
||||||
def frontend
|
def frontend
|
||||||
set_app_domain
|
|
||||||
end
|
end
|
||||||
|
|
||||||
rescue_from ActionView::MissingTemplate do |exception|
|
rescue_from ActionView::MissingTemplate do |exception|
|
||||||
@@ -20,10 +20,6 @@ class ApplicationController < ActionController::Base
|
|||||||
response.headers.except! 'X-Frame-Options'
|
response.headers.except! 'X-Frame-Options'
|
||||||
end
|
end
|
||||||
|
|
||||||
def set_app_domain
|
|
||||||
@appDomain = request.domain
|
|
||||||
@appDomain << ':' + request.port.to_s unless request.port.blank?
|
|
||||||
end
|
|
||||||
def set_csrf_cookie
|
def set_csrf_cookie
|
||||||
cookies['XSRF-TOKEN'] = form_authenticity_token if protect_against_forgery?
|
cookies['XSRF-TOKEN'] = form_authenticity_token if protect_against_forgery?
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user