PERF: bypass theme handling on static routes

This commit is contained in:
Sam 2018-01-17 16:33:17 +11:00
parent 72b592c395
commit b2009d6e32
1 changed files with 1 additions and 0 deletions

View File

@ -6,6 +6,7 @@ class StaticController < ApplicationController
skip_before_action :check_xhr, :redirect_to_login_if_required
skip_before_action :verify_authenticity_token, only: [:brotli_asset, :cdn_asset, :enter, :favicon, :service_worker_asset]
skip_before_action :preload_json, only: [:brotli_asset, :cdn_asset, :enter, :favicon, :service_worker_asset]
skip_before_action :handle_theme, only: [:brotli_asset, :cdn_asset, :enter, :favicon, :service_worker_asset]
PAGES_WITH_EMAIL_PARAM = ['login', 'password_reset', 'signup']